Skip to content

Commit

Permalink
🐛 Increment attempt count after each attempt to push ozone event (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Mar 4, 2024
1 parent 27ff43b commit 1102784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ozone/src/daemon/event-pusher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class EventPusher {
? { confirmedAt: new Date() }
: {
lastAttempted: new Date(),
attempts: evt.attempts ?? 0 + 1,
attempts: (evt.attempts ?? 0) + 1,
},
)
.where('subjectDid', '=', evt.subjectDid)
Expand Down Expand Up @@ -244,7 +244,7 @@ export class EventPusher {
? { confirmedAt: new Date() }
: {
lastAttempted: new Date(),
attempts: evt.attempts ?? 0 + 1,
attempts: (evt.attempts ?? 0) + 1,
},
)
.where('subjectUri', '=', evt.subjectUri)
Expand Down Expand Up @@ -284,7 +284,7 @@ export class EventPusher {
? { confirmedAt: new Date() }
: {
lastAttempted: new Date(),
attempts: evt.attempts ?? 0 + 1,
attempts: (evt.attempts ?? 0) + 1,
},
)
.where('subjectDid', '=', evt.subjectDid)
Expand Down

0 comments on commit 1102784

Please sign in to comment.