style(backend): 格式化代码并修复floating-promises以通过pre-push检查
This commit is contained in:
@@ -14,7 +14,10 @@ export async function runPddOrderSyncJob(job: JsonObject) {
|
||||
? (job.config as JsonObject)
|
||||
: {}
|
||||
const sourcesConfig = getPddSourcesConfig()
|
||||
const pageSize = Math.min(100, Math.max(1, Number(config.pageSize || sourcesConfig.pageSize || 50)))
|
||||
const pageSize = Math.min(
|
||||
100,
|
||||
Math.max(1, Number(config.pageSize || sourcesConfig.pageSize || 50)),
|
||||
)
|
||||
const maxPages = Math.min(20, Math.max(1, Number(config.maxPages || sourcesConfig.maxPages || 5)))
|
||||
const orderType = Number(config.orderType ?? sourcesConfig.orderType ?? 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user