This commit is contained in:
sianida26 2024-02-18 11:35:17 +07:00
parent 27fdced0c9
commit 1918a16857
2 changed files with 9 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default async function getAllLinkRequests(): Promise<
const requestLinks = await db.office365LinkRequest.findMany({
orderBy: [
{
status: "desc"
status: "asc"
},
{
requestedAt: "desc"

View File

@ -18,6 +18,14 @@ export default async function getLinkRequests(): Promise<
if (!user) return unauthorized();
const requests = await db.office365LinkRequest.findMany({
orderBy: [
{
status: "asc"
},
{
requestedAt: "desc"
}
],
where: {
creator: { id: user.id },
},