fix: should set status on restore end

This commit is contained in:
izzy
2025-11-20 15:41:05 +00:00
parent 31f4665d35
commit f778a4260b
2 changed files with 4 additions and 2 deletions

View File

@@ -154,7 +154,9 @@ describe(MaintenanceWorkerService.name, () => {
describe('endMaintenance', () => {
it('should set maintenance mode', async () => {
mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false });
await expect(sut.endMaintenance()).resolves.toBeUndefined();
await sut.runAction({
action: MaintenanceAction.End,
});
expect(mocks.systemMetadata.set).toHaveBeenCalledWith(SystemMetadataKey.MaintenanceMode, {
isMaintenanceMode: false,

View File

@@ -261,7 +261,7 @@ export class MaintenanceWorkerService {
}),
);
await this.runAction({
await this.setAction({
action: MaintenanceAction.End,
});
}