mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-23 13:01:25 -08:00
feat: allow local wiki backup in interval
This commit is contained in:
parent
75d4c02c47
commit
bf64ac6ffd
14 changed files with 98 additions and 49 deletions
|
|
@ -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'}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue