fix: throw error if parent is not found, not if it is also found
All checks were successful
create archive with lfs / tag (push) Successful in 9s
All checks were successful
create archive with lfs / tag (push) Successful in 9s
This commit is contained in:
parent
a3d79509a3
commit
612fa9228e
@ -52,8 +52,9 @@ export const POST = async ({ request }) => {
|
||||
if (parentUri !== undefined) {
|
||||
const parentPost = await bot.getPost(parentUri)
|
||||
postRef = await parentPost.reply(postPayload)
|
||||
} else {
|
||||
throw "a reply was requested but no reply is found"
|
||||
}
|
||||
throw "a reply was requested but no reply is found"
|
||||
} else {
|
||||
postRef = await bot.post(postPayload)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user