diff --git a/server/controllers/phaseHistory.ts b/server/controllers/phaseHistory.ts index 7a7968f0d..75dd0aef0 100644 --- a/server/controllers/phaseHistory.ts +++ b/server/controllers/phaseHistory.ts @@ -38,6 +38,7 @@ phaseHistoryController.post({ path: '/' }, async (_req, res) => { const phaseHistory = new PhaseHistory(); phaseHistory.village = village; phaseHistory.phase = data.phase; + phaseHistory.startingOn = new Date(); // Save phase history in db const phaseHistoryRepository = AppDataSource.getRepository(PhaseHistory);