From 0f6e094f249162b778a288d37df402580ee89fcd Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Fri, 24 May 2024 14:38:57 +0300 Subject: [PATCH] add location to myschedule info --- pages/cart/publishers/myschedule.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pages/cart/publishers/myschedule.tsx b/pages/cart/publishers/myschedule.tsx index f6962a1..7b0059b 100644 --- a/pages/cart/publishers/myschedule.tsx +++ b/pages/cart/publishers/myschedule.tsx @@ -76,6 +76,12 @@ export default function MySchedulePage({ assignments }) {
+
+
Място
+
+ {assignment.shift.cartEvent.location.name} +
+
Час
@@ -217,6 +223,17 @@ export const getServerSideProps = async (context) => { } } } + }, + cartEvent: { + select: { + id: true, + dayofweek: true, + location: { + select: { + name: true, + } + } + } } }, },