forked from administration/panel
fix: fetch created reports correctly
parent
de305d3901
commit
831abb6dc2
|
@ -344,7 +344,7 @@ export async function fetchReportsByUser(userId: string) {
|
||||||
.db("revolt")
|
.db("revolt")
|
||||||
.collection<Report>("safety_reports")
|
.collection<Report>("safety_reports")
|
||||||
.find(
|
.find(
|
||||||
{ status: "Created", authorId: userId },
|
{ author_id: userId },
|
||||||
{
|
{
|
||||||
sort: {
|
sort: {
|
||||||
_id: -1,
|
_id: -1,
|
||||||
|
|
Loading…
Reference in New Issue