1
0
Fork 0

fix: fetch created reports correctly

dufisgsd
Lea 2023-08-09 21:13:15 +02:00
parent de305d3901
commit 831abb6dc2
Signed by: lea
GPG Key ID: 1BAFFE8347019C42
1 changed files with 1 additions and 1 deletions

View File

@ -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,