monographs: Id -> _id

This commit is contained in:
Abdullah Atta
2024-06-07 15:30:47 +05:00
parent fe4b71ef7e
commit 336976dd1e

View File

@@ -102,7 +102,7 @@ namespace Notesnook.API.Controllers
var monographs = (await Monographs.Collection.FindAsync(Builders<Monograph>.Filter.Eq("UserId", userId), new FindOptions<Monograph, ObjectWithId>
{
Projection = Builders<Monograph>.Projection.Include("Id"),
Projection = Builders<Monograph>.Projection.Include("_id"),
})).ToEnumerable();
return Ok(monographs.Select((m) => m.Id));
}