test: strengthen launch smoke and capacity guardrails

This commit is contained in:
Codex
2026-07-01 04:10:55 +08:00
parent 3d33c783cd
commit 6bdb2a175a
11 changed files with 494 additions and 39 deletions

View File

@@ -228,7 +228,7 @@ export async function autoGrantBadges(
tenant_id, user_id, badge_id, granted_by, legacy_id,
note, metadata, granted_at
)
values ($1, $2, $3, null, $4, $5, $6::jsonb, now())
values ($1, $2, $3, null, null, $4, $5::jsonb, now())
on conflict (tenant_id, user_id, badge_id) do nothing
returning id, legacy_id as "legacyId", user_id as "userId",
badge_id as "badgeId", note, metadata,
@@ -239,7 +239,6 @@ export async function autoGrantBadges(
input.tenantId,
input.userId,
badge.id,
`auto:${badge.id}:user:${input.userId}`,
`自动发放:${badge.name}`,
JSON.stringify(metadata),
],