link first
This commit is contained in:
parent
21d8352de0
commit
ca12fdd876
@ -12,7 +12,7 @@ export default eventHandler(async (event) => {
|
||||
statusText: 'Link already exists',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
else {
|
||||
const expiration = getExpiration(event, link.expiration)
|
||||
|
||||
@ -24,5 +24,6 @@ export default eventHandler(async (event) => {
|
||||
})
|
||||
setResponseStatus(event, 201)
|
||||
return { link }
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user