add query for client details
This commit is contained in:
parent
172927e069
commit
0b280cec8e
8 changed files with 114 additions and 69 deletions
|
|
@ -3,7 +3,7 @@ class ApiUtils {
|
|||
console.log("Converting to snake case:", obj);
|
||||
const newObj = Object.entries(obj).reduce((acc, [key, value]) => {
|
||||
const snakeKey = key.replace(/[A-Z]/g, (match) => "_" + match.toLowerCase());
|
||||
if (key === "sorting") {
|
||||
if (key === "sortings") {
|
||||
value = value
|
||||
? value.map((item) => {
|
||||
const [field, order] = item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue