Skip to content

Refactor game ID handling in controller and validation schemas#169

Merged
Uttkarsh24 merged 3 commits intoTheGradients:mainfrom
Uttkarsh24:main
Feb 18, 2025
Merged

Refactor game ID handling in controller and validation schemas#169
Uttkarsh24 merged 3 commits intoTheGradients:mainfrom
Uttkarsh24:main

Conversation

@Uttkarsh24
Copy link
Copy Markdown
Collaborator

This pull request includes changes to standardize the field names used in various game ID-related functions and validation schemas across the codebase. The main change involves replacing specific game ID fields with a more generic gameID field.

Changes to game.controller.js:

  • Updated the addBgmiId function to use gameID instead of bgmiId for consistency.
  • Modified the addFreeFireId function to use gameID instead of freeFireId.
  • Adjusted the addValorantId function to use gameID instead of valorantId, and updated the nested properties accordingly.
  • Changed the addCodmId function to use gameID instead of codmId.
  • Updated the addAsphaltId function to use gameID instead of asphaltId.

Changes to gameValidatorSchema.js:

  • Standardized the validation schemas to use gameID instead of specific game ID fields like bgmiId, freeFireId, valorantId, codmId, and asphaltId.

@Uttkarsh24 Uttkarsh24 merged commit a90938e into TheGradients:main Feb 18, 2025
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.

1 participant