Skip to content

Commit 06767cc

Browse files
authored
Merge pull request #1532 from 0chain/fix/update-meta
Fix update meta
2 parents e451fac + 493b759 commit 06767cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/go/0chain.net/blobbercore/allocation/newdirchange.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (nf *NewDir) ApplyChangeV2(ctx context.Context, allocationRoot, clientPubKe
128128
collector.LockTransaction()
129129
defer collector.UnlockTransaction()
130130
txn := datastore.GetStore().GetTransaction(ctx)
131-
err = txn.Exec("UPDATE refs SET custom_meta=? WHERE lookup_hash=?", nf.CustomMeta, newRef.LookupHash).Error
131+
err = txn.Exec("UPDATE reference_objects SET custom_meta=? WHERE lookup_hash=?", nf.CustomMeta, newRef.LookupHash).Error
132132
return 0, err
133133
}
134134
newRef.AllocationID = nf.AllocationID

0 commit comments

Comments
 (0)