Skip to content

Commit

Permalink
Merge pull request #1419 from 0chain/hotfix/get-marker
Browse files Browse the repository at this point in the history
Use sequence to get marker
  • Loading branch information
dabasov committed May 15, 2024
2 parents 3bcb469 + a404870 commit 8aaf842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/go/0chain.net/blobbercore/writemarker/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func GetWriteMarkerEntity(ctx context.Context, allocation_root string) (*WriteMa
// err := db.First(wm, "allocation_root = ?", allocation_root).Error
err := db.Table((WriteMarkerEntity{}).TableName()).
Where("allocation_root=?", allocation_root).
Order("timestamp desc").
Order("sequence desc").
Take(wm).Error
if err != nil {
return nil, err
Expand Down

0 comments on commit 8aaf842

Please sign in to comment.