🚸 sort documents by created

This commit is contained in:
Timur Ercan
2023-02-23 14:53:28 +01:00
parent 5584f3b26e
commit 17cfae4b43

View File

@ -14,6 +14,9 @@ export const getDocumentsForUserFromToken = async (
include: {
Recipient: true,
},
orderBy: {
created: "desc",
},
});
return documents.map((e) => ({ ...e, document: "" }));