This function takes the Active Games JSON objects and sends them to the upload function There is no need for any additional logic here
This is an array of Active Games JSON objects puzzles
This function takes in the input query and deletes any user active games that match the query We do not throw an error here to stay aligned with standard practice. A delete request is successful even if the object did not exist.
this stores a JSON object that stores the query
This function takes in bodyData and queryData and updates all user active games that match the queryData with the bodyData This function calls a helper function to create the inputQuery for the database function
this stores a JSON object with values to be updated
this stores a JSON object with values used to retrieve puzzles to be updated
This function takes in the input query and throws and error if no puzzles are found to match the query This function calls a helper function to create the inputQuery for the dataBase function
this is a JSON object that stores the input query
Generated using TypeDoc
This is the user active games service file This file takes input from the controller and directs it to the db.service file The five functions are userActiveGamesCreateService, userActiveGamesSearchService, userActiveGamesUpdateService, puzzleRemoveService, and filterInputQuery The main purpose of this service file is to perform the 'business' logic Any errors will be caught by our try/catch block in our controller