mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
1a0500b812
commit
1348873847
2 files changed
+6
-3
No files matched your search
@@ -48,7 +48,7 @@ export async function saveFragments(db: D1Database, fragments: NamedFragment[]):
|
|||||||
if (!newKeys.has(key)) {
|
if (!newKeys.has(key)) {
|
||||||
const [id, groupId] = key.split(":");
|
const [id, groupId] = key.split(":");
|
||||||
statements.push(
|
statements.push(
|
||||||
db.prepare("DELETE FROM d1_fragments WHERE id = ? AND group_id = ?").bind(id, groupId)
|
db.prepare("DELETE FROM d1_fragments WHERE id = ? AND group_id = ?").bind(id, groupId),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,10 @@ export function d1ConfigStore(db: D1Database, kv: KVNamespace): ConfigStore {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
function routeStatements(routes: Route[], existingRouteKeys?: Set<string>): D1PreparedStatement[] {
|
function routeStatements(
|
||||||
|
routes: Route[],
|
||||||
|
existingRouteKeys?: Set<string>,
|
||||||
|
): D1PreparedStatement[] {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const statements: D1PreparedStatement[] = [];
|
const statements: D1PreparedStatement[] = [];
|
||||||
|
|
||||||
@@ -99,7 +102,7 @@ export function d1ConfigStore(db: D1Database, kv: KVNamespace): ConfigStore {
|
|||||||
if (!newKeys.has(key)) {
|
if (!newKeys.has(key)) {
|
||||||
const [id, groupId] = key.split(":");
|
const [id, groupId] = key.split(":");
|
||||||
statements.push(
|
statements.push(
|
||||||
db.prepare("DELETE FROM d1_routes WHERE id = ? AND group_id = ?").bind(id, groupId)
|
db.prepare("DELETE FROM d1_routes WHERE id = ? AND group_id = ?").bind(id, groupId),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user