refactor: add hotel scope to service token fetch & enable hotel API

This commit is contained in:
Chuma McPhoy
2024-08-19 09:38:06 +02:00
parent 2407f40b75
commit aa38e82698
4 changed files with 21 additions and 2548 deletions

View File

@@ -7,8 +7,7 @@ export const langInput = z.object({
})
/**
* Helper function to convert Lang enum to uppercase
* Needed for the Hotel endpoint.
* Helper function to convert Lang enum to API lang enum.
*/
export const toApiLang = (lang: Lang): string => {
const result = toApiLangMap[lang]