Fix delete work items bug
This commit is contained in:
1 parent
2249f0c11a
commit
efd42d06a2
1 file changed
+1
@@ -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