Skip to content

Commit

Permalink
Fix working-hours-entry update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1uev committed Nov 25, 2024
1 parent f9099b5 commit 91ab58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/working-hours/server/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const userRouter: FastifyPluginCallback = async function (fastify, opts) {
})
const mergedEntries = existingEntries.map((x) =>
x.id === entry.id
? { ...x, startTime: entry.startTime, endTime: entry.endTime }
? { ...x, startTime: req.body.startTime, endTime: req.body.endTime }
: x
)

Expand Down

0 comments on commit 91ab58e

Please sign in to comment.