refactor(server): sync service (#19559)

This commit is contained in:
Jason Rasmussen
2025-06-26 13:24:57 -04:00
committed by GitHub
parent 926ff075a3
commit b96c95beda
3 changed files with 4 additions and 5 deletions

View File

@@ -96,10 +96,7 @@ export class SyncService extends BaseService {
throw new BadRequestException(`Invalid ack type: ${type}`);
}
if (checkpoints[type]) {
throw new BadRequestException('Only one ack per type is allowed');
}
// TODO pick the latest ack for each type, instead of using the last one
checkpoints[type] = { sessionId, type, ack };
}