Skip to content

Commit

Permalink
feat(cu): move idx of schedule before interval name in pseudo sortKey #…
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 19, 2023
1 parent c386d99 commit e4b2b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/cu/src/domain/lib/loadMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export function scheduleMessagesBetweenWith ({
* It will also enable performing range queries to fetch all scheduled messages by simply
* appending a ',' to any sortKey
*/
sortKey: `${curBlock.height},${curBlock.timestamp},${leftHash},${schedule.interval}${idx}`,
sortKey: `${curBlock.height},${curBlock.timestamp},${leftHash},${idx}${schedule.interval}`,
AoGlobal: {
process: { id: processId, owner: processOwner },
block: curBlock
Expand Down Expand Up @@ -266,7 +266,7 @@ export function scheduleMessagesBetweenWith ({
* It will also enable performing range queries to fetch all scheduled messages by simply
* appending a ',' to any sortKey
*/
sortKey: `${curHeight},${curTimestamp},${leftHash},${schedule.interval}${idx}`,
sortKey: `${curHeight},${curTimestamp},${leftHash},${idx}${schedule.interval}`,
AoGlobal: {
process: { id: processId, owner: processOwner },
block: curBlock
Expand Down

0 comments on commit e4b2b25

Please sign in to comment.