feat: Implement get connection flows API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-10 16:11:07 +01:00
parent c1740aae6c
commit 6027cb7cb0
6 changed files with 171 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ const renderObject = (response, object, options) => {
let data = isPaginated(object) ? object.records : object;
const type = isPaginated(object)
? object.records[0].constructor.name
? object.records[0]?.constructor?.name || 'Object'
: Array.isArray(object)
? object?.[0]?.constructor?.name || 'Object'
: object.constructor.name;