Fix delete work items bug
This commit is contained in:
@@ -56,6 +56,7 @@ export class WorkItemRoutes extends BaseRoutes {
|
||||
async deleteAllWorkItems(req, res, next) {
|
||||
const Activity = this.db.Activity
|
||||
const WorkItem = this.db.WorkItem
|
||||
const Team = this.db.Team
|
||||
|
||||
await Activity.remove({})
|
||||
await Team.updateMany({}, { $set: { start: null } })
|
||||
|
||||
Reference in New Issue
Block a user