fix (minor): noteId is not a number

This commit is contained in:
naskya 2023-09-07 02:38:42 +09:00
parent d69bc740ea
commit 1a7ccb04e5
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139
2 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ const isForeignLanguage: boolean =
return postLang !== "" && postLang !== targetLang;
})();
async function translate_(noteId: number, targetLang: string) {
async function translate_(noteId, targetLang: string) {
return await os.api("notes/translate", {
noteId: noteId,
targetLang: targetLang,

View File

@ -304,7 +304,7 @@ const isForeignLanguage: boolean =
return postLang !== "" && postLang !== targetLang;
})();
async function translate_(noteId: number, targetLang: string) {
async function translate_(noteId, targetLang: string) {
return await os.api("notes/translate", {
noteId: noteId,
targetLang: targetLang,