Delint
This commit is contained in:
parent
551639811b
commit
08d886e9d1
12 changed files with 77 additions and 79 deletions
|
@ -7,7 +7,6 @@ import { exportTypes } from "./exportUtils";
|
|||
import { exportOptions } from "./exportUtils";
|
||||
import { EventType } from "matrix-js-sdk/src/@types/event";
|
||||
|
||||
|
||||
export default class JSONExporter extends Exporter {
|
||||
protected totalSize: number;
|
||||
protected messages: any[];
|
||||
|
@ -32,7 +31,7 @@ export default class JSONExporter extends Exporter {
|
|||
export_date: exportDate,
|
||||
exported_by: exporterName,
|
||||
messages: this.messages,
|
||||
}
|
||||
};
|
||||
return JSON.stringify(jsonObject, null, 2);
|
||||
}
|
||||
|
||||
|
@ -90,11 +89,11 @@ export default class JSONExporter extends Exporter {
|
|||
if (this.cancelled) {
|
||||
console.info("Export cancelled successfully");
|
||||
} else {
|
||||
console.info("Export successful!")
|
||||
console.info("Export successful!");
|
||||
console.log(`Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`);
|
||||
}
|
||||
|
||||
this.cleanUp()
|
||||
this.cleanUp();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue