trash empty route fix
This commit is contained in:
@@ -601,7 +601,7 @@ function emptyTrash() {
|
|||||||
|
|
||||||
// Create an array of promises for emptying trash in each room
|
// Create an array of promises for emptying trash in each room
|
||||||
const emptyPromises = roomIds.map(roomId =>
|
const emptyPromises = roomIds.map(roomId =>
|
||||||
fetch(`/api/rooms/${roomId}/trash/empty`, {
|
fetch(`/api/trash/${roomId}/trash/empty`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ window.emptyTrash = function() {
|
|||||||
|
|
||||||
// Create an array of promises for emptying trash in each room
|
// Create an array of promises for emptying trash in each room
|
||||||
const emptyPromises = roomIds.map(roomId =>
|
const emptyPromises = roomIds.map(roomId =>
|
||||||
fetch(`/api/rooms/${roomId}/trash/empty`, {
|
fetch(`/api/trash/${roomId}/trash/empty`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user