Skip to content

Commit

Permalink
fix: menghapus console
Browse files Browse the repository at this point in the history
  • Loading branch information
Narrr21 committed Dec 1, 2024
1 parent d1930bc commit 6c9b125
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/controllers/recommendation.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ recommendationRoute.openapi(postVoucherReviewRoute, async (c) => {
rating,
review,
};
console.log('Created data:', data);

try {
const voucher = await postVoucherReview(db, data);
console.log('Created voucher review:', voucher);
// console.log('Created voucher review:', voucher);
return c.json(voucher, 201);
} catch (error) {
if (error instanceof PostgresError) {
console.log('Postgres error:', error);
// console.log('Postgres error:', error);
return c.json(
{
error: 'failed to create voucher review',
Expand Down Expand Up @@ -98,11 +97,10 @@ recommendationRoute.openapi(postCoWorkingSpaceReviewRoute, async (c) => {
rating,
review,
};
console.log('Created data:', data);

try {
const coWorkingSpaceReview = await postCoWorkingSpaceReview(db, data);
console.log('Created co-working space review:', coWorkingSpaceReview);
// console.log('Created co-working space review:', coWorkingSpaceReview);
return c.json(coWorkingSpaceReview, 201);
} catch (error) {
if (error instanceof PostgresError) {
Expand Down

0 comments on commit 6c9b125

Please sign in to comment.