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
9eeafb8c15
commit
7c37f5d8b6
19 files changed
+101
-116
No files matched your search
@@ -66,4 +66,4 @@ export function deliveryKey(
|
||||
deliveryId: string,
|
||||
): string {
|
||||
return `delivery:${provider}:${groupId ?? "global"}:${deliveryId}`;
|
||||
}
|
||||
}
|
||||
@@ -56,4 +56,4 @@ export function d1MessageTracker(db: D1Database): MessageTracker {
|
||||
|
||||
export function messageTracker(db: D1Database, kv: KVNamespace): MessageTracker {
|
||||
return canUseD1(db) ? d1MessageTracker(db) : kvMessageTracker(kv);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,7 @@
|
||||
import type { SendRecord } from "./send-log";
|
||||
import { log } from "./log";
|
||||
|
||||
export async function recordSendBatch(
|
||||
db: D1Database,
|
||||
records: SendRecord[],
|
||||
): Promise<void> {
|
||||
export async function recordSendBatch(db: D1Database, records: SendRecord[]): Promise<void> {
|
||||
if (records.length === 0) return;
|
||||
try {
|
||||
const stmts = records.map((r) =>
|
||||
@@ -38,4 +35,4 @@ export async function recordSendBatch(
|
||||
} catch (err) {
|
||||
log.warn({ err, count: records.length }, "Failed to record send log batch");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user