mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-23 04:52:02 -08:00
refactor: make adminToken usage clearer
This commit is contained in:
parent
d24a7519f2
commit
fdaa9cc48e
4 changed files with 20 additions and 14 deletions
|
|
@ -123,13 +123,8 @@ export class WorkspaceView implements IWorkspaceViewService {
|
|||
});
|
||||
}
|
||||
}
|
||||
let adminToken = '';
|
||||
if (workspace.tokenAuth) {
|
||||
logger.debug(`initializeWorkspaceView() generateOneTimeAdminAuthTokenForWorkspace`);
|
||||
adminToken = this.authService.generateOneTimeAdminAuthTokenForWorkspace(workspace.id);
|
||||
}
|
||||
logger.debug(`initializeWorkspaceView() calling wikiStartup()`);
|
||||
await this.wikiService.wikiStartup(workspace, { adminToken });
|
||||
await this.wikiService.wikiStartup(workspace);
|
||||
|
||||
const userInfo = await this.authService.getStorageServiceUserInfo(workspace.storageService);
|
||||
const { wikiFolderLocation, gitUrl: githubRepoUrl, storageService, homeUrl } = workspace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue