Skip to content

Commit

Permalink
Add time logged to entry to allow editing
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalupahana committed Jul 18, 2024
1 parent 466597b commit a2ea44f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export const moodLog = async (req: UserRequest, res: Response) => {
logData.time = "12:00 PM";
logData.zone = "local";
logData.addFlag = "summary";
logData.timeLogged = DateTime.utc().toMillis();

const lastUpdated = (await db.ref(`/${req.user!.user_id}/lastUpdated`).get()).val();
if (lastUpdated && lastUpdated > globalNow.toMillis()) {
Expand Down

0 comments on commit a2ea44f

Please sign in to comment.