diff --git a/src/routes/api/v1/storageUnits.ts b/src/routes/api/v1/storageUnits.ts index 0c62c1a..054ad74 100644 --- a/src/routes/api/v1/storageUnits.ts +++ b/src/routes/api/v1/storageUnits.ts @@ -15,9 +15,10 @@ function get(req: Request, res: Response) { where: { id: parseInt(req.query.id.toString()) }, - // Get category name from relation. + // Get contactInfo and StorageLocation from relation. include: { - contactInfo: true + contactInfo: true, + StorageLocation: true } }) .then((items) => { @@ -34,9 +35,10 @@ function get(req: Request, res: Response) { } else { prisma.storageUnit .findMany({ - // Get category name from relation. + // Get contactInfo and StorageLocation from relation. include: { - contactInfo: true + contactInfo: true, + StorageLocation: true } }) .then((items) => {