Sort active workspaces (#9973)

Adding an order when fetching active workspaces so that when we run
command we can better understand the workspaces from the logs. Also, if
the command fails, we know we could start from a specific createdAt
later on
This commit is contained in:
Guillim
2025-02-03 13:33:00 +01:00
committed by GitHub
parent 9d24bfb747
commit 5a13d5ae29

View File

@ -40,6 +40,9 @@ export abstract class ActiveWorkspacesCommandRunner extends BaseCommandRunner {
WorkspaceActivationStatus.SUSPENDED,
]),
},
order: {
createdAt: 'ASC',
},
});
return activeWorkspaces.map((workspace) => workspace.id);