mirror of
https://github.com/immich-app/immich.git
synced 2026-01-19 10:26:04 -05:00
refactor: don't await returned promise
This commit is contained in:
parent
33b180a1f0
commit
9a65ff7c21
@ -591,7 +591,7 @@ export const utils = {
|
||||
name: ManualJobName.BackupDatabase,
|
||||
});
|
||||
|
||||
return await utils.poll(
|
||||
return utils.poll(
|
||||
() => request(app).get('/admin/database-backups').set('Authorization', `Bearer ${accessToken}`),
|
||||
({ status, body }) => status === 200 && body.backups.length === 1,
|
||||
({ body }) => body.backups[0],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user