This commit is contained in:
2025-12-07 22:42:23 +01:00
parent d33b908775
commit 8faaef1ef5
3 changed files with 15 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ export default async function staffTimeRoutes(server: FastifyInstance) {
server.post(
'/staff/time',
async (req, reply) => {
const { started_at, stopped_at, type = 'work', description, user_id } = req.body
const { started_at, stopped_at, type = 'work', description, user_id } = req.body as any
const userId = req.user.user_id
const tenantId = req.user.tenant_id