send back created resource
This commit is contained in:
parent
fc32cf3996
commit
55fb361c5c
1 changed files with 3 additions and 5 deletions
|
|
@ -2041,11 +2041,9 @@ module.exports = async (
|
|||
const user = GunDB.getUser()
|
||||
const SEA = GunDB.mySEA
|
||||
|
||||
await GunActions.sendMessage(publicKey,body, user, SEA)
|
||||
|
||||
return res.status(200).json({
|
||||
ok: true
|
||||
})
|
||||
return res.status(200).json(
|
||||
await GunActions.sendMessageNew(publicKey,body, user, SEA)
|
||||
)
|
||||
} catch (err) {
|
||||
logger.error(err)
|
||||
return res.status(500).json({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue