chore: move converting params to service

This commit is contained in:
kolaente 2022-02-27 17:21:07 +01:00
parent a8ee54d626
commit db47c1f10c
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
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