diff --git a/package.json b/package.json index fbe4822..cfe6f2e 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,9 @@ "peerDependencies": { "typescript": "^5" }, + "scripts": { + "dev": "bun --watch index.ts" + }, "dependencies": { "hono": "^4.10.7" } diff --git a/src/index.ts b/src/index.ts index 2a43ee1..53446b5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,7 +76,7 @@ app.post("/api/v1/ext/add_one", async (c) => { $SAFE: newExtension.SAFE, $UPDATE_DATE: newExtension.UPDATE_DATE, $NOTES: newExtension.NOTES, - }); + } as any); return c.json(newExtension); }); @@ -112,7 +112,7 @@ app.post("/api/v1/ext/add_batch", async (c) => { $SAFE: newExtension.SAFE, $UPDATE_DATE: newExtension.UPDATE_DATE, $NOTES: newExtension.NOTES, - }); + } as any); createdExtensions.push(newExtension); } @@ -168,7 +168,7 @@ app.put("/api/v1/ext/update_one/:item_id", async (c) => { $NOTES: nextExt.NOTES, $UPDATE_DATE: nextExt.UPDATE_DATE, $ID: nextExt.ID, - }); + } as any); } return c.json(nextExt);