chore(backend): rename lastSyncTimestamp to since across Ping sync API for consistency
- Updated parameter name in `PingController`, `PingApi`, and related tests to align with SyncManager conventions.
This commit is contained in:
+3
-2
@@ -80,9 +80,10 @@ class PingController(
|
||||
|
||||
@GetMapping("/ping/sync")
|
||||
override suspend fun syncPings(
|
||||
@RequestParam(required = false, defaultValue = "0") lastSyncTimestamp: Long
|
||||
// Changed the parameter name to 'since' to match SyncManager convention
|
||||
@RequestParam(required = false, defaultValue = "0") since: Long
|
||||
): List<PingEvent> {
|
||||
return pingUseCase.getPingsSince(lastSyncTimestamp).map {
|
||||
return pingUseCase.getPingsSince(since).map {
|
||||
PingEvent(
|
||||
id = it.id.toString(),
|
||||
message = it.message,
|
||||
|
||||
Reference in New Issue
Block a user