Skip to content

Commit fe5d1ca

Browse files
committed
removed the result collection
1 parent 427ed16 commit fe5d1ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/api/[roomcode]/delete/route.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ export async function DELETE(_request: Request, context: RoomCodeRouteContext) {
1616
db.collection('rooms').findOneAndDelete({ _id: rooms[i]._id })
1717
}
1818

19-
db.collection('result').findOneAndDelete({
20-
roomcode: context.params.roomcode,
21-
})
22-
2319
return new Response(JSON.stringify(''), { status: 200 })
2420
} catch (error) {
2521
console.log(error)

0 commit comments

Comments
 (0)