style(backend): 格式化代码并修复floating-promises以通过pre-push检查

This commit is contained in:
yml2213
2026-09-12 17:46:47 +08:00
parent 8cc3aa2a35
commit fea82bff36
12 changed files with 55 additions and 71 deletions
@@ -86,7 +86,6 @@ export async function findLatestOrderByAnyPlatformOrderId(
return result.rows[0] || null
}
export async function findExistingPlatformOrderIds({
provider = 'pdd',
platform = 'pdd',
@@ -376,7 +376,7 @@ export async function pruneWorkProductMatchLogs(
}
const remainingRes = await query<{ total: number }>(
"SELECT COUNT(*)::int AS total FROM work_product_match_logs",
'SELECT COUNT(*)::int AS total FROM work_product_match_logs',
)
const remainingTotal = Number(remainingRes.rows[0]?.total || 0)