mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
refactor: use getTiddlerText on WikiOperations instead of service.getTiddlerText
This commit is contained in:
parent
4b09485cea
commit
360157290b
6 changed files with 13 additions and 32 deletions
|
|
@ -92,10 +92,10 @@ export class Git implements IGitService {
|
|||
* similar to "linonetwo/wiki", string after "https://com/"
|
||||
*/
|
||||
const githubRepoName = `${userName}/${repoName}`;
|
||||
if (await this.wikiService.getTiddlerText(workspace, '$:/GitHub/Repo') !== githubRepoName) {
|
||||
if (await this.wikiService.wikiOperationInServer(WikiChannel.getTiddlerText, workspace.id, ['$:/GitHub/Repo']) !== githubRepoName) {
|
||||
await this.wikiService.wikiOperationInBrowser(WikiChannel.addTiddler, workspace.id, ['$:/GitHub/Repo', githubRepoName]);
|
||||
}
|
||||
if (await this.wikiService.getTiddlerText(workspace, '$:/GitHub/Branch') !== branch) {
|
||||
if (await this.wikiService.wikiOperationInServer(WikiChannel.getTiddlerText, workspace.id, ['$:/GitHub/Branch']) !== branch) {
|
||||
await this.wikiService.wikiOperationInBrowser(WikiChannel.addTiddler, workspace.id, ['$:/GitHub/Branch', branch]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue