Skip to content

Commit 1a8934d

Browse files
committed
Fix BlockModel.getByTime() performance
1 parent a317d9b commit 1a8934d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/logic/block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export async function getByTime(
212212
[Sequelize.Op.lte]: timestamp
213213
}
214214
},
215-
order: [["timestamp", "DESC"], ["number", "DESC"]]
215+
order: [["timestamp", "DESC"]]
216216
});
217217

218218
if (block == null) {

0 commit comments

Comments
 (0)