minor fix
This commit is contained in:
parent
fdfb3a927e
commit
0b8d8c0645
|
@ -26,11 +26,11 @@ export default async function getLink(userId: number, body: string) {
|
||||||
};
|
};
|
||||||
else if (query.sort === Sort.DescriptionAZ)
|
else if (query.sort === Sort.DescriptionAZ)
|
||||||
order = {
|
order = {
|
||||||
name: "asc",
|
description: "asc",
|
||||||
};
|
};
|
||||||
else if (query.sort === Sort.DescriptionZA)
|
else if (query.sort === Sort.DescriptionZA)
|
||||||
order = {
|
order = {
|
||||||
name: "desc",
|
description: "desc",
|
||||||
};
|
};
|
||||||
|
|
||||||
const links = await prisma.link.findMany({
|
const links = await prisma.link.findMany({
|
||||||
|
|
Ŝarĝante…
Reference in New Issue