backend: Update deleteAllRooms function to initialize nextPageToken as undefined
This commit is contained in:
parent
44ce0ce2af
commit
c583023a69
@ -75,7 +75,7 @@ export const login = async (app: Express, username?: string, password?: string)
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const deleteAllRooms = async (app: Express) => {
|
export const deleteAllRooms = async (app: Express) => {
|
||||||
let nextPageToken = '';
|
let nextPageToken = undefined;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
const response: any = await request(app)
|
const response: any = await request(app)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user