mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Missing model return in admin-backups route (#28035)
Followup dd30463276
We missed the explicit `return` when we changed to
async/await, so the model ends up being null on admin
backups.
This means we also have no tests for the backup UI, that
will be fixed in a subsequent PR.
This commit is contained in:
@@ -33,7 +33,7 @@ export default class AdminBackupsRoute extends DiscourseRoute {
|
|||||||
ajax("/admin/backups/status.json")
|
ajax("/admin/backups/status.json")
|
||||||
);
|
);
|
||||||
|
|
||||||
BackupStatus.create({
|
return BackupStatus.create({
|
||||||
isOperationRunning: status.is_operation_running,
|
isOperationRunning: status.is_operation_running,
|
||||||
canRollback: status.can_rollback,
|
canRollback: status.can_rollback,
|
||||||
allowRestore: status.allow_restore,
|
allowRestore: status.allow_restore,
|
||||||
|
|||||||
Reference in New Issue
Block a user