Skip to content

Commit b69d190

Browse files
committed
fix bug introduced
1 parent 70e6dd9 commit b69d190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ const buildWhereClause = ({ schema, query, index, caseInsensitive }): WhereClaus
404404
if (fieldName.indexOf('.') >= 0) {
405405
values.push(fieldValue.$eq);
406406
patterns.push(`${transformDotField(fieldName)} = $${index++}`);
407-
} if (typeof fieldValue.$eq === 'object' && fieldValue.$eq.$relativeTime) {
407+
} else if (typeof fieldValue.$eq === 'object' && fieldValue.$eq.$relativeTime) {
408408
throw new Parse.Error(
409409
Parse.Error.INVALID_JSON,
410410
'$relativeTime can only be used with the $lt, $lte, $gt, and $gte operators'

0 commit comments

Comments
 (0)