style: 修复 pre-push Prettier 格式检查失败

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-15 10:47:38 +08:00
co-authored by Cursor
parent 5cbb977b96
commit e20505bc8e
8 changed files with 28 additions and 43 deletions
@@ -16,10 +16,7 @@ import type { JsonObject } from '../../types/json.js'
import type { OrderItemRow, OrderRow } from '../../types/repository/rows.js'
import { createHttpError } from '../../utils/http.js'
import { nowIso } from '../../utils/time.js'
import {
extractPddOutSkuSn,
type PddRawOrderItem,
} from '../platforms/pdd/pdd-order-mapper.js'
import { extractPddOutSkuSn, type PddRawOrderItem } from '../platforms/pdd/pdd-order-mapper.js'
import {
normalizeDateString,
normalizePage,
@@ -267,9 +264,7 @@ export async function listAdminKuaishouMatchSources(payload: JsonObject = {}) {
const relSkuId = normalizeKuaishouMatchId(
ksc.relSkuId || outSkuSn || snapshot.spec || row.sku_code,
)
const skuNick = String(
ksc.skuNick || outSkuSn || snapshot.spec || row.sku_name || '',
).trim()
const skuNick = String(ksc.skuNick || outSkuSn || snapshot.spec || row.sku_name || '').trim()
if (!sellerId || (!relItemId && !itemTitle)) continue