feat: sync all workspaces (#4353)

This commit is contained in:
Jérémy M
2024-03-07 15:40:09 +01:00
committed by GitHub
parent eabece6918
commit c3a024b047
5 changed files with 80 additions and 49 deletions

View File

@ -64,4 +64,10 @@ export class WorkspaceService extends TypeOrmQueryService<Workspace> {
return workspace;
}
async getWorkspaceIds() {
return this.workspaceRepository
.find()
.then((workspaces) => workspaces.map((workspace) => workspace.id));
}
}