fix (minor): noteId is not a number
This commit is contained in:
parent
d69bc740ea
commit
1a7ccb04e5
2 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ const isForeignLanguage: boolean =
|
||||||
return postLang !== "" && postLang !== targetLang;
|
return postLang !== "" && postLang !== targetLang;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
async function translate_(noteId: number, targetLang: string) {
|
async function translate_(noteId, targetLang: string) {
|
||||||
return await os.api("notes/translate", {
|
return await os.api("notes/translate", {
|
||||||
noteId: noteId,
|
noteId: noteId,
|
||||||
targetLang: targetLang,
|
targetLang: targetLang,
|
||||||
|
|
|
@ -304,7 +304,7 @@ const isForeignLanguage: boolean =
|
||||||
return postLang !== "" && postLang !== targetLang;
|
return postLang !== "" && postLang !== targetLang;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
async function translate_(noteId: number, targetLang: string) {
|
async function translate_(noteId, targetLang: string) {
|
||||||
return await os.api("notes/translate", {
|
return await os.api("notes/translate", {
|
||||||
noteId: noteId,
|
noteId: noteId,
|
||||||
targetLang: targetLang,
|
targetLang: targetLang,
|
||||||
|
|
Loading…
Reference in a new issue