Skip to content

Commit

Permalink
chore: ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
codecreator127 committed Aug 30, 2024
1 parent 060497d commit 34ea51a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/src/routes/api/navigate/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ const deleteAllNotes = async (groupData) => {
);
const noteId = noteList.map(({ id }) => id);
await Note.deleteMany({ _id: { $in: noteId } });
const res = await Group.updateOne(
{ _id: groupId },
{ $set: { notes: {} } }
).exec();
await Group.updateOne({ _id: groupId }, { $set: { notes: {} } }).exec();
// if (res.nModified !== 1) {
// throw new HttpError("Failed to delete notes", STATUS.INTERNAL_SERVER_ERROR);
// }
Expand Down

0 comments on commit 34ea51a

Please sign in to comment.