mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fixed standalone anonymize script
This commit is contained in:
parent
743979266a
commit
4ba72bc8d3
@ -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}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user