forked from wangziqi/gongxue-base
test: strengthen launch smoke and capacity guardrails
This commit is contained in:
@@ -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),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user