Check error state on update sql

This commit is contained in:
Eli Ribble 2026-03-19 03:52:56 +00:00
parent 6338d9f3f3
commit 544f99c09b
No known key found for this signature in database

View file

@ -95,10 +95,13 @@ func UploadCommit(ctx context.Context, org Organization, file_id int32, committe
um.Where(psql.Quote("id").EQ(psql.Arg(file_id))),
um.Where(psql.Quote("organization_id").EQ(psql.Arg(org.ID))),
).Exec(ctx, txn)
err = background.NewCSVCommit(ctx, txn, file_id)
if err != nil {
return fmt.Errorf("update upload: %w", err)
}
err = background.NewCSVCommit(ctx, txn, file_id)
if err != nil {
return fmt.Errorf("background csv commit: %w", err)
}
err = txn.Commit(ctx)
return err