fix (minor): noteId is not a number
This commit is contained in:
parent
d69bc740ea
commit
1a7ccb04e5
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user