mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Order genres by name
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { SortOrder } from '@/types/types';
|
||||||
import { prisma } from '@lib/prisma';
|
import { prisma } from '@lib/prisma';
|
||||||
import { ApiError } from '@utils/api-error';
|
import { ApiError } from '@utils/api-error';
|
||||||
|
|
||||||
@@ -15,6 +16,9 @@ const findManyByServer = async (options: { serverId: string }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
orderBy: {
|
||||||
|
name: SortOrder.ASC,
|
||||||
|
},
|
||||||
where: {
|
where: {
|
||||||
OR: [
|
OR: [
|
||||||
{ albumArtists: { some: { serverId } } },
|
{ albumArtists: { some: { serverId } } },
|
||||||
|
|||||||
Reference in New Issue
Block a user