1
0
Fork 1
mirror of https://example.com synced 2024-11-23 10:56:38 +09:00

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
Signed by: naskya
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,