This commit is contained in:
Luiz Silva 2025-09-26 09:20:53 -03:00
parent 351a0e33fb
commit 3e9aa7eeb4
3 changed files with 8 additions and 1 deletions

View file

@ -129,7 +129,9 @@ export class TipagemRotas<T extends { [q: string]: any }> {
for (const chave in queryObj) {
try {
queryObj[chave] = JSON.parse(queryObj[chave])
} catch {}
} catch {
console.log(`[${queryObj[chave]}] não é um json válido.`)
}
}
return queryObj as Partial<T>