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