remove comment

This commit is contained in:
Marc-Roig 2023-01-16 18:23:15 +01:00
parent 27b8b5b353
commit ff6a198518

View File

@ -5,7 +5,6 @@ const { merge } = require('lodash/fp');
function getCountForRelation(entity, attributeName) {
const entityAttribute = entity[attributeName];
// Check if is an array? what happens if its a one to one relation?
if (Array.isArray(entityAttribute)) {
return { count: entityAttribute.length };
}