Fix delete work items bug

This commit is contained in:
John Lyon-Smith
2018-05-18 07:33:29 -07:00
parent 2249f0c11a
commit efd42d06a2

View File

@@ -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 } })