Skip to content

Commit e1fb4cb

Browse files
committed
disable eslint because _id is intentionally used
1 parent e23a9bc commit e1fb4cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/src/controllers/reviews.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,9 @@ router.patch('/updateReview', async function (req, res) {
347347
const query = {
348348
_id: new ObjectId(req.body._id),
349349
};
350-
350+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
351351
const { _id, ...updateWithoutId } = updatedReviewBody;
352-
353352
await updateDocument(COLLECTION_NAMES.REVIEWS, query, { $set: updateWithoutId });
354-
console.log('HELLO3');
355353
const responseWithId = {
356354
_id: query._id,
357355
...updateWithoutId,

0 commit comments

Comments
 (0)