Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mProjectsCode committed Jun 1, 2022
1 parent 30208ea commit ad750ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class MediaDbPlugin extends Plugin {
return false;
}
if (!checking) {
this.updateActiveNote()
this.updateActiveNote();
}
return true;
},
Expand Down
2 changes: 1 addition & 1 deletion src/modals/MediaDbIdSearchModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
if (!api) {
this.onSubmit(new Error('the selected api does not exist'));
}
const res = await api.getById({id: this.query} as MediaTypeModel); // TODO: fix jank
const res = await api.getById(this.query);
this.onSubmit(null, res);
} catch (e) {
this.onSubmit(e);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/TestAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
}


async getById(item: MediaTypeModel): Promise<MediaTypeModel> {
async getById(id: string): Promise<MediaTypeModel> {
return undefined;
}

Expand Down

0 comments on commit ad750ce

Please sign in to comment.