Skip to content

Commit

Permalink
update client controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4nR committed May 16, 2024
1 parent 295d657 commit 290b830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/controllers/client-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ module.exports = {
res.status(202).send(data);
} catch (error) {
console.log(error);
res.status(500).send({ message: 'Terjadi Kesalahan pada Server' });
res
.status(500)
.send({ message: 'Terjadi Kesalahan pada Server', status: 500 });
}
},
};

0 comments on commit 290b830

Please sign in to comment.