Skip to content

Commit ad750ce

Browse files
committed
oops
1 parent 30208ea commit ad750ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class MediaDbPlugin extends Plugin {
4848
return false;
4949
}
5050
if (!checking) {
51-
this.updateActiveNote()
51+
this.updateActiveNote();
5252
}
5353
return true;
5454
},

src/modals/MediaDbIdSearchModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
5050
if (!api) {
5151
this.onSubmit(new Error('the selected api does not exist'));
5252
}
53-
const res = await api.getById({id: this.query} as MediaTypeModel); // TODO: fix jank
53+
const res = await api.getById(this.query);
5454
this.onSubmit(null, res);
5555
} catch (e) {
5656
this.onSubmit(e);

src/tests/TestAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
1717
}
1818

1919

20-
async getById(item: MediaTypeModel): Promise<MediaTypeModel> {
20+
async getById(id: string): Promise<MediaTypeModel> {
2121
return undefined;
2222
}
2323

0 commit comments

Comments
 (0)