Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Mar 12, 2024
1 parent deb0052 commit e0a2b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orm/base_model/index.ts
Expand Up @@ -1984,8 +1984,8 @@ class BaseModelImpl implements LucidRow {
result[relation.serializeAs] = Array.isArray(value)
? value.map((one) => one.serialize(relationOptions))
: value === null
? null
: value.serialize(relationOptions)
? null
: value.serialize(relationOptions)

return result
}, {})
Expand Down

0 comments on commit e0a2b03

Please sign in to comment.