File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import fs from "fs/promises";
33import fsExtra from "fs-extra" ;
44import path from "path" ;
55import electron from "electron" ;
6- import { deferred , type DeferredPromise } from "@triliumnext/server/src/services/utils.js" ;
76import windowService from "@triliumnext/server/src/services/window.js" ;
87import archiver , { type Archiver } from "archiver" ;
98import type { WriteStream } from "fs" ;
109import TaskContext from "@triliumnext/server/src/services/task_context.js" ;
1110import { resolve } from "path" ;
11+ import { deferred , DeferredPromise } from "../../../packages/commons/src" ;
1212
1313export function initializeDatabase ( skipDemoDb : boolean ) {
1414 return new Promise < void > ( async ( resolve ) => {
@@ -92,8 +92,6 @@ function waitForEnd(archive: Archiver, stream: WriteStream) {
9292}
9393
9494export async function extractZip ( zipFilePath : string , outputPath : string , ignoredFiles ?: Set < string > ) {
95- const deferred = ( await import ( "@triliumnext/server/src/services/utils.js" ) ) . deferred ;
96-
9795 const promise = deferred < void > ( )
9896 setTimeout ( async ( ) => {
9997 // Then extract the zip.
You can’t perform that action at this time.
0 commit comments