Fixed requesting all data after a connection lost
This commit is contained in:
parent
11322a7231
commit
2a73c194dd
@ -142,8 +142,9 @@ export class AutoupdateService {
|
|||||||
* The server should return an autoupdate with all new data.
|
* The server should return an autoupdate with all new data.
|
||||||
*/
|
*/
|
||||||
public requestChanges(): void {
|
public requestChanges(): void {
|
||||||
console.log('requesting changed objects with DS max change id', this.DS.maxChangeId + 1);
|
const changeId = this.DS.maxChangeId === 0 ? 0 : this.DS.maxChangeId + 1;
|
||||||
this.websocketService.send('getElements', { change_id: this.DS.maxChangeId + 1 });
|
console.log(`requesting changed objects with DS max change id ${changeId}`);
|
||||||
|
this.websocketService.send('getElements', { change_id: changeId });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user