mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +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 { ApiError } from '@utils/api-error';
|
||||
|
||||
@@ -15,6 +16,9 @@ const findManyByServer = async (options: { serverId: string }) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
orderBy: {
|
||||
name: SortOrder.ASC,
|
||||
},
|
||||
where: {
|
||||
OR: [
|
||||
{ albumArtists: { some: { serverId } } },
|
||||
|
||||
Reference in New Issue
Block a user