Skip to content

Commit 8aaf842

Browse files
authored
Merge pull request #1419 from 0chain/hotfix/get-marker
Use sequence to get marker
2 parents 3bcb469 + a404870 commit 8aaf842

File tree

1 file changed

+1
-1
lines changed
  • code/go/0chain.net/blobbercore/writemarker

1 file changed

+1
-1
lines changed

code/go/0chain.net/blobbercore/writemarker/entity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func GetWriteMarkerEntity(ctx context.Context, allocation_root string) (*WriteMa
142142
// err := db.First(wm, "allocation_root = ?", allocation_root).Error
143143
err := db.Table((WriteMarkerEntity{}).TableName()).
144144
Where("allocation_root=?", allocation_root).
145-
Order("timestamp desc").
145+
Order("sequence desc").
146146
Take(wm).Error
147147
if err != nil {
148148
return nil, err

0 commit comments

Comments
 (0)