Skip to content

Commit

Permalink
fix: fix siyuan imagehosting token
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Aug 4, 2021
1 parent 8203a6b commit 55f9c53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/backend/imageHosting/siyuan/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export interface YuqueImageHostingOption {
export default class SiYuanImageHostingService implements ImageHostingService {
private context: { currentRepository: Repository } | null = null;
private siyuan: SiYuanClient;
constructor() {
constructor(config: { accessToken?: string }) {
this.siyuan = new SiYuanClient({
request: Container.get(IBasicRequestService),
accessToken: config.accessToken,
});
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"sourceMap": true,
"lib": ["dom", "ES2021"],
"lib": ["dom", "es2020", "es5", "ESNext.String"],
"inlineSources": true,
"esModuleInterop": true,
"jsx": "react",
Expand Down

0 comments on commit 55f9c53

Please sign in to comment.