mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
Refactor delete setting helper and link skills (#994)
* refactor: add deleteSetting helper and link skills * chore: reorganize project skills layout * docs: update skill paths * chore: add AGENTS link and prune skill links * chore: localize agent skill links
This commit is contained in:
@@ -64,6 +64,16 @@ export const saveSetting = async (
|
||||
return true;
|
||||
}
|
||||
|
||||
export const deleteSetting = async (
|
||||
c: Context<HonoCustomType>,
|
||||
key: string
|
||||
) => {
|
||||
await c.env.DB.prepare(
|
||||
`DELETE FROM settings WHERE key = ?`
|
||||
).bind(key).run();
|
||||
return true;
|
||||
}
|
||||
|
||||
export const getStringValue = (value: any): string => {
|
||||
if (typeof value === "string") {
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user