Skip to content

Feature/day 9 weather giphy third party api#18

Open
engrjunaidali wants to merge 34 commits intodevkindhq:masterfrom
engrjunaidali:feature/day-9-weather-giphy-third-party-api
Open

Feature/day 9 weather giphy third party api#18
engrjunaidali wants to merge 34 commits intodevkindhq:masterfrom
engrjunaidali:feature/day-9-weather-giphy-third-party-api

Conversation

@engrjunaidali
Copy link
Copy Markdown

No description provided.


// Only update fields that were provided and validated
const updateData: any = {}
if (validatedData.title !== undefined) updateData.title = validatedData.title
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can do like
typeof validatedData.title !== 'undefined' ? updateData.title : validatedData.title

Comment thread config/shield.ts
exceptRoutes: [
'/api/auth/jwt/signup',
'/api/auth/jwt/login',
'/api/auth/jwt/logout',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logout ? logout should be protected

Comment thread config/weather.ts
*/
openweather: {
apiKey: env.get('OPENWEATHER_API_KEY'),
baseUrl: 'https://api.openweathermap.org/data/2.5',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use envs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants