I am trying to update a file named blues.cts because a function named fetchAllPacks uses it to update the client. I was wondering if, without updating the functions, I could update the JSON data in that file? The following is blues.cts that I would like to update. It has this data object, interfaces, and a few functions.
export const data = {
"specials": {
"Alien Cat": {
"cost": 0,
"bluedata": "Alien Cat",
...
This is my functions script, and I see there is no need to update this function.
export const fetchAllPacks = onCall({enforceAppCheck: true}, async (req) => {
if (req.auth == null) {return {success: false, error: ReturnError.auth.invalid}}
return {success:true, packs: shop.getAllPacks()};
});