Skip to content

Commit 23d5f68

Browse files
committed
fixes
1 parent 6ce389a commit 23d5f68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Issues/IssueUpdater.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {Octokit} from "@octokit/core";
77
/**
88
* Fetches issues from the given url and updates them in the current editor
99
* @param app
10-
* @param octobundle
10+
* @param octokit
1111
*/
12-
export async function updateIssues(app: App, octobundle: Octokit) {
12+
export async function updateIssues(app: App, octokit: Octokit) {
1313
const repo = getRepoInFile(app);
1414
const view = app.workspace.getActiveViewOfType(MarkdownView)
1515

@@ -23,7 +23,7 @@ export async function updateIssues(app: App, octobundle: Octokit) {
2323
return;
2424
}
2525

26-
const issues = await fetchIssues(octobundle, url);
26+
const issues = await fetchIssues(octokit, url);
2727

2828
if (issues) {
2929
//delete the lines between the start and end line

main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default class MyPlugin extends Plugin {
107107
name: 'Update Issues',
108108
callback: () => {
109109
new Notice("Updating issues...")
110-
updateIssues(this.app, {octokit: octokit!, plugin_settings: this.settings} as OctoBundle,)
110+
updateIssues(this.app, octokit!)
111111
}
112112
})
113113

0 commit comments

Comments
 (0)