Skip to content

Commit

Permalink
Merge pull request #1532 from 0chain/fix/update-meta
Browse files Browse the repository at this point in the history
Fix update meta
  • Loading branch information
dabasov authored Jan 28, 2025
2 parents e451fac + 493b759 commit 06767cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/go/0chain.net/blobbercore/allocation/newdirchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (nf *NewDir) ApplyChangeV2(ctx context.Context, allocationRoot, clientPubKe
collector.LockTransaction()
defer collector.UnlockTransaction()
txn := datastore.GetStore().GetTransaction(ctx)
err = txn.Exec("UPDATE refs SET custom_meta=? WHERE lookup_hash=?", nf.CustomMeta, newRef.LookupHash).Error
err = txn.Exec("UPDATE reference_objects SET custom_meta=? WHERE lookup_hash=?", nf.CustomMeta, newRef.LookupHash).Error
return 0, err
}
newRef.AllocationID = nf.AllocationID
Expand Down

0 comments on commit 06767cc

Please sign in to comment.