feat(dobotai): containerize test runtime and admin bootstrap
This commit is contained in:
@@ -147,6 +147,9 @@ func (r *SettingsRepository) ConfirmBootstrap(ctx context.Context, tenant string
|
||||
var challengeID, staff, union, name, dept string
|
||||
err = tx.QueryRow(ctx, `SELECT id,candidate_staff_id,candidate_union_id,candidate_display_name,candidate_department FROM admin_bootstrap_challenges WHERE tenant_key=$1 AND status='candidate_detected' AND expires_at>NOW() FOR UPDATE`, tenant).Scan(&challengeID, &staff, &union, &name, &dept)
|
||||
if err != nil {
|
||||
if errors.Is(err, pgx.ErrNoRows) {
|
||||
return settings.ErrBootstrapCandidatePending
|
||||
}
|
||||
return err
|
||||
}
|
||||
if strings.TrimSpace(staff) == "" {
|
||||
|
||||
Reference in New Issue
Block a user