mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 23:13:43 +08:00
fixed standalone anonymize script
This commit is contained in:
parent
743979266a
commit
4ba72bc8d3
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
const backupService = require('./services/backup');
|
||||
const anonymizationService = require('./services/anonymization');
|
||||
const sqlInit = require('./services/sql_init');
|
||||
require('./entities/entity_constructor');
|
||||
require('./becca/entity_constructor');
|
||||
|
||||
sqlInit.dbReady.then(async () => {
|
||||
try {
|
||||
console.log("Starting anonymization...");
|
||||
|
||||
const resp = await backupService.anonymize();
|
||||
const resp = await anonymizationService.createAnonymizedCopy('full');
|
||||
|
||||
if (resp.success) {
|
||||
console.log(`Anonymized file has been saved to: ${resp.anonymizedFilePath}`);
|
||||
|
|
Loading…
Reference in a new issue