Update pages/api/availability/_get.ts

add initialData: {user}

Co-authored-by: Omar López <[email protected]>
This commit is contained in:
Agusti Fernandez PardoandOmar López authored and GitHub committed 2022-07-05 20:34:53 +02:00
1 parent 9b5c7c5120
commit 5dbb2066e0
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ async function handler(req: NextApiRequest) {
dateTo,
eventTypeId,
userId: user.userId,
})
}, {initialData: { user }})
);
}