diff --git a/backend/src/index.js b/backend/src/index.js index 63c0b5f..6fba57a 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -86,7 +86,7 @@ app.post('/api/attachments/upload/:cash_up_id', { preHandler: [requireAuth, requ [cashUpId, fileData.filename, filePath, size, fileData.mimetype, req.user.email, attachmentType, label] ) - return ins.rows[0] + return ins[0] }) app.delete('/api/attachments/:id', { preHandler: [requireAuth, requireCap('count')] }, async (req, reply) => {