Order genres by name

This commit is contained in:
jeffvli
2022-11-04 18:38:00 -07:00
parent d88e99e38c
commit fd53f90db2
+4
View File
@@ -1,3 +1,4 @@
import { SortOrder } from '@/types/types';
import { prisma } from '@lib/prisma';
import { ApiError } from '@utils/api-error';
@@ -15,6 +16,9 @@ const findManyByServer = async (options: { serverId: string }) => {
},
},
},
orderBy: {
name: SortOrder.ASC,
},
where: {
OR: [
{ albumArtists: { some: { serverId } } },