/api/packages refactored, forgot to commit some changes
This commit is contained in:
@@ -28,7 +28,7 @@ async function GET(req: NextApiRequest, res: NextApiResponse) {
|
||||
const snapshot = await db.collection("assignments").findOne({ id: id as string });
|
||||
|
||||
if (snapshot) {
|
||||
res.status(200).json({...snapshot, id: snapshot._id});
|
||||
res.status(200).json({...snapshot, id: snapshot.id});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user