Skip to content

Commit 3d284b3

Browse files
committed
return null instead of brackets
1 parent eaf7941 commit 3d284b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/baseController.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ class Controller {
134134
}
135135

136136
generateRelationshipWhereClause (req, modelName) {
137-
if (!req) return {}
137+
if (!req) return null
138138
const { filterRelationships } = req.query
139139

140140
if (filterRelationships && filterRelationships[modelName]) return filterRelationships[modelName]
141-
return {}
141+
return null
142142
}
143143

144144
// construct a Sorting Condition(value for sequelize sort: key) based on req.query.sort

0 commit comments

Comments
 (0)