Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition: export "zoneExists" #136

Merged
merged 6 commits into from
Jun 1, 2024
Merged

Conversation

AnishBplayz
Copy link
Contributor

Added a new function, api.zoneExists(id). This function checks whether a zone with the specified ID exists within the system. The ID parameter can be either a number or a string, representing the zone's index or name, respectively.

Changes Made:

  • Implemented the api.zoneExists(id) function.
  • Utilizes the Zones table to check for the existence of the specified zone.
  • Validates the input parameter ID to ensure it is either a number or a string.
  • Returns true if the zone with the specified ID exists; otherwise, it returns false.

This addition enhances the functionality of the codebase by providing a convenient method to verify the existence of zones based on their IDs.

@AnishBplayz
Copy link
Contributor Author

@thelindat This should be resolved now

@AnishBplayz AnishBplayz requested a review from thelindat May 13, 2024 05:39
@thelindat thelindat merged commit fd28987 into overextended:main Jun 1, 2024
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