Fix update of file upload statistics
This commit is contained in:
parent
c8f5408f27
commit
6180860ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ func ProcessJob(ctx context.Context, file_id int32) error {
|
|||
_, err = psql.Update(
|
||||
um.Table("fileupload.csv"),
|
||||
um.SetCol("rowcount").ToArg(len(pools)),
|
||||
um.Where(psql.Quote("id").EQ(psql.Arg(file_id))),
|
||||
um.Where(psql.Quote("file_id").EQ(psql.Arg(file_id))),
|
||||
).Exec(ctx, txn)
|
||||
if err != nil {
|
||||
return fmt.Errorf("update csv row: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue