little fix

This commit is contained in:
Julian Freeman
2025-12-01 13:05:01 -04:00
parent 9ace5221fc
commit 2a8c121af7
2 changed files with 6 additions and 3 deletions

View File

@@ -9,6 +9,9 @@
"peerDependencies": {
"typescript": "^5"
},
"scripts": {
"dev": "bun --watch index.ts"
},
"dependencies": {
"hono": "^4.10.7"
}

View File

@@ -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);