Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

refactor: remove unused userEmail parameter from updateTimeEntry function

Andrej Acevskif851c443b078
diff --git a/apps/api/src/time-entry/index.ts b/apps/api/src/time-entry/index.ts
index 7f8f5b68e..bf99fd533 100644
--- a/apps/api/src/time-entry/index.ts
+++ b/apps/api/src/time-entry/index.ts
@@ -62,14 +62,8 @@ const timeEntry = new Hono<{
async (c) => {
const { id } = c.req.valid("param");
const { endTime, duration } = c.req.valid("json");
- const userEmail = c.get("userEmail");
- const timeEntry = await updateTimeEntry(
- id,
- new Date(endTime),
- duration,
- userEmail,
- );
+ const timeEntry = await updateTimeEntry(id, new Date(endTime), duration);
return c.json(timeEntry);
},