Use -1 as the default lastResponseTime

Entites that didn't have an updatedAt time at the time of creation will
default to having one set to 0.  Since entities with an updatedAt time
greater than lastResponseTime is expected to be returned this means that
these entities would not be included when a client does its initial sync
subscribing to a resource.  Change the default lastResponseTime
requested so that these entities are included.
This commit is contained in:
Hornwitser committed 2023-12-11 20:21:43 +01:00
1 parent 5748f834ff
commit 0c4387769e
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ export class SubscriptionController {
export class EventSubscriber<T extends Event<T>, V=T> {
_callbacks = new Array<EventSubscriberCallback<V>>();
lastResponse: Event<T> | null = null;
lastResponseTime = 0;
lastResponseTime = -1;
control?: Link;
constructor(