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:
parent
d69bc740ea
commit
1a7ccb04e5
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue