Commit 6f75944
committed
fix(history-sync): reset cumulative counters on new sync start and abort
Detect new sync runs by tracking lastProgress — when progress resets or
decreases, counters are zeroed before accumulating. This prevents stale
counts from aborted syncs leaking into subsequent runs.
Addresses Sourcery review feedback on PR #2442.1 parent 1242baa commit 6f75944
File tree
1 file changed
+11
-1
lines changed- src/api/integrations/channel/whatsapp
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
948 | 957 | | |
949 | 958 | | |
950 | 959 | | |
| |||
1093 | 1102 | | |
1094 | 1103 | | |
1095 | 1104 | | |
| 1105 | + | |
1096 | 1106 | | |
1097 | 1107 | | |
1098 | 1108 | | |
| |||
0 commit comments