1
0

chore: move converting params to service

This commit is contained in:
kolaente
2022-02-27 17:21:07 +01:00
parent a8ee54d626
commit db47c1f10c
3 changed files with 28 additions and 8 deletions

View File

@ -45,10 +45,6 @@ export function objectToCamelCase(object) {
*/
export function objectToSnakeCase(object) {
if (object instanceof Date) {
return object.toISOString()
}
// When calling recursively, this can be called without being and object or array in which case we just return the value
if (typeof object !== 'object') {
return object