feat: update backlog sync logic to queue requests and adjust response structure

This commit is contained in:
MythEclipse
2026-05-15 18:53:12 +07:00
parent 61b07e4b01
commit 73901231c3
3 changed files with 26 additions and 15 deletions

View File

@@ -45,7 +45,8 @@ describe("createSyncRoutes", () => {
expect(json).toHaveBeenCalledWith({
success: true,
channelId: "selected-channel",
messagesSync: 3,
messagesSync: 0,
queued: true,
skipped: false,
});
expect(next).not.toHaveBeenCalled();
@@ -91,6 +92,7 @@ describe("createSyncRoutes", () => {
success: true,
channelId: "selected-channel",
messagesSync: 0,
queued: false,
skipped: true,
});
});