little fix
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "bun --watch index.ts"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hono": "^4.10.7"
|
"hono": "^4.10.7"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ app.post("/api/v1/ext/add_one", async (c) => {
|
|||||||
$SAFE: newExtension.SAFE,
|
$SAFE: newExtension.SAFE,
|
||||||
$UPDATE_DATE: newExtension.UPDATE_DATE,
|
$UPDATE_DATE: newExtension.UPDATE_DATE,
|
||||||
$NOTES: newExtension.NOTES,
|
$NOTES: newExtension.NOTES,
|
||||||
});
|
} as any);
|
||||||
|
|
||||||
return c.json(newExtension);
|
return c.json(newExtension);
|
||||||
});
|
});
|
||||||
@@ -112,7 +112,7 @@ app.post("/api/v1/ext/add_batch", async (c) => {
|
|||||||
$SAFE: newExtension.SAFE,
|
$SAFE: newExtension.SAFE,
|
||||||
$UPDATE_DATE: newExtension.UPDATE_DATE,
|
$UPDATE_DATE: newExtension.UPDATE_DATE,
|
||||||
$NOTES: newExtension.NOTES,
|
$NOTES: newExtension.NOTES,
|
||||||
});
|
} as any);
|
||||||
|
|
||||||
createdExtensions.push(newExtension);
|
createdExtensions.push(newExtension);
|
||||||
}
|
}
|
||||||
@@ -168,7 +168,7 @@ app.put("/api/v1/ext/update_one/:item_id", async (c) => {
|
|||||||
$NOTES: nextExt.NOTES,
|
$NOTES: nextExt.NOTES,
|
||||||
$UPDATE_DATE: nextExt.UPDATE_DATE,
|
$UPDATE_DATE: nextExt.UPDATE_DATE,
|
||||||
$ID: nextExt.ID,
|
$ID: nextExt.ID,
|
||||||
});
|
} as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.json(nextExt);
|
return c.json(nextExt);
|
||||||
|
|||||||
Reference in New Issue
Block a user