feat: allow local wiki backup in interval

This commit is contained in:
林一二 2022-04-04 15:48:50 +08:00
parent 75d4c02c47
commit bf64ac6ffd
14 changed files with 98 additions and 49 deletions

View file

@ -113,7 +113,7 @@ export class WorkspaceView implements IWorkspaceViewService {
throw new TypeError(`userInfo is undefined in initializeAllWorkspaceView when init ${wikiFolderLocation}`);
}
// sync in non-blocking way
void this.gitService.commitAndSync(workspace, githubRepoUrl, userInfo);
void this.gitService.commitAndSync(workspace, { remoteUrl: githubRepoUrl, userInfo });
}
} catch (error) {
logger.error(`Can't sync at wikiStartup(), ${(error as Error).message}\n${(error as Error).stack ?? 'no stack'}`);