(client: MongoClient, teamId: string)
| 26 | * Remove all workspaces for a team |
| 27 | */ |
| 28 | export async function removeAllWorkspaces(client: MongoClient, teamId: string) { |
| 29 | const workspaceCol = client |
| 30 | .db(databaseName) |
| 31 | .collection("workspaces"); |
| 32 | return await workspaceCol.deleteMany({ team: new ObjectId(teamId) }); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Remove a workspace. Operation to be performed when a workspace is deleted |
no outgoing calls
no test coverage detected
searching dependent graphs…