TS fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user