0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

include query example for future debugging

This commit is contained in:
Víctor Losada Hernández
2024-08-09 22:35:39 +02:00
parent 9288ead130
commit 969eb354ce

View File

@@ -19,6 +19,9 @@ const buildAuthorConditions = (author) => {
return { authors: author };
};
//"$and": [ {"published": true}, {"$text": { "$search": "titleString", "$caseSensitive": false } }, { "authors" : "authorString"}]
//is a good example of a query constructed with this function
const handleErrorResponse = (res, error, functionName) => {
const status = error.response?.status || 500;
const message =