Skip to content
Snippets Groups Projects
Commit 5588c9d3 authored by Martin Korec's avatar Martin Korec
Browse files

fix: changed ordering of movies in category

parent 84d5c86b
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,11 @@ export class CategoriesService {
async findAll(): Promise<Category[]> {
return await this.prisma.category.findMany({
include: {
movies: true,
movies: {
orderBy:{
name: 'asc',
}
}
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment