Skip to content

Commit 033ee21

Browse files
Don’t create triage notes in the future
1 parent 1c56437 commit 033ee21

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/create-data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import { Session } from '../app/models/session.js'
5353
import { User } from '../app/models/user.js'
5454
import { Vaccination } from '../app/models/vaccination.js'
5555
import {
56-
addDays,
5756
getDateValueDifference,
5857
formatDate,
5958
removeDays,
@@ -412,7 +411,7 @@ for (const patientSession of Object.values(context.patientSessions)) {
412411
outcome,
413412
name: `Triaged decision: ${outcome}`,
414413
note,
415-
createdAt: addDays(response.createdAt, 2),
414+
createdAt: response.createdAt,
416415
createdBy_uid: nurse.uid
417416
})
418417
}

0 commit comments

Comments
 (0)