mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
fixed standalone anonymize script
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
const backupService = require('./services/backup');
|
const anonymizationService = require('./services/anonymization');
|
||||||
const sqlInit = require('./services/sql_init');
|
const sqlInit = require('./services/sql_init');
|
||||||
require('./entities/entity_constructor');
|
require('./becca/entity_constructor');
|
||||||
|
|
||||||
sqlInit.dbReady.then(async () => {
|
sqlInit.dbReady.then(async () => {
|
||||||
try {
|
try {
|
||||||
console.log("Starting anonymization...");
|
console.log("Starting anonymization...");
|
||||||
|
|
||||||
const resp = await backupService.anonymize();
|
const resp = await anonymizationService.createAnonymizedCopy('full');
|
||||||
|
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
console.log(`Anonymized file has been saved to: ${resp.anonymizedFilePath}`);
|
console.log(`Anonymized file has been saved to: ${resp.anonymizedFilePath}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user