Skip to content
Snippets Groups Projects
Commit a28e1502 authored by Ricardo's avatar Ricardo
Browse files

FIX implant buy message

parent 1fccaae2
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,9 @@ export default class implant { ...@@ -186,7 +186,9 @@ export default class implant {
}) })
.returning() .returning()
return res.status(200).json({ message: 'Implant bought successfully', purchase, user: updated_user }) return res
.status(200)
.json({ message: 'Implant bought successfully', purchase, user: updated_user, success: true })
} catch (error) { } catch (error) {
console.error(error) console.error(error)
return res.status(500).json({ error: 'Erro ao realizar a compra' }) return res.status(500).json({ error: 'Erro ao realizar a compra' })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment