Update pages/api/availability/_get.ts

add initialData: {user}

Co-authored-by: Omar López <zomars@me.com>
pull/9078/head
Agusti Fernandez Pardo 2022-07-05 20:34:53 +02:00 committed by GitHub
parent 9b5c7c5120
commit 5dbb2066e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ async function handler(req: NextApiRequest) {
dateTo,
eventTypeId,
userId: user.userId,
})
}, {initialData: { user }})
);
}