Fix build

This commit is contained in:
pietervdvn 2021-12-17 23:17:34 +01:00
parent 0ae78f19f3
commit be9784e047

View file

@ -107,7 +107,7 @@ export class Changes {
* Uploads all the pending changes in one go.
* Triggered by the 'PendingChangeUploader'-actor in Actors
*/
public async flushChanges(flushreason: string = undefined, openChangeset: UIEventSource<number>) : Promise<void>{
public async flushChanges(flushreason: string = undefined, openChangeset?: UIEventSource<number>) : Promise<void>{
if (this.pendingChanges.data.length === 0) {
return;
}
@ -312,7 +312,7 @@ export class Changes {
return true;
}
private async flushChangesAsync(openChangeset: UIEventSource<number>): Promise<void> {
private async flushChangesAsync(openChangeset?: UIEventSource<number>): Promise<void> {
const self = this;
try {
// At last, we build the changeset and upload