fix: wrong relation join
This commit is contained in:
parent
96618c6e06
commit
aec90e4644
1 changed files with 1 additions and 3 deletions
|
|
@ -72,9 +72,7 @@ export class ServiceController extends Controller {
|
||||||
prisma.service.findMany({
|
prisma.service.findMany({
|
||||||
include: {
|
include: {
|
||||||
workOnService: {
|
workOnService: {
|
||||||
include: {
|
include: { work: true },
|
||||||
service: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
orderBy: { createdAt: "asc" },
|
orderBy: { createdAt: "asc" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue