feat: re-enable noUpdate for getIdBySlug

This commit is contained in:
DIYgod
2023-06-06 16:54:01 +01:00
parent 88ddb4ae09
commit 8963290c1e
+5 -3
View File
@@ -46,11 +46,13 @@ export async function getIdBySlug(slug: string, characterId: string | number) {
)
} while (!note && cursor)
return {
noteId: note?.noteId,
if (note?.noteId) {
return {
noteId: note?.noteId,
}
}
},
// noUpdate: true,
noUpdate: true,
})) as {
noteId: number
}