Skip to content

Commit 8f595f8

Browse files
Code styling
1 parent 926a626 commit 8f595f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/validators/comparison/unique.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Astro.createValidator({
1717
// If the "_id" fields is present, then object is being updated.
1818
// In this case, ignore the object itself.
1919
if (this._id) {
20-
selector._id = {$ne: this._id};
20+
selector._id = {
21+
$ne: this._id
22+
};
2123
}
2224

2325
// Check if a record with the given field value exists.

0 commit comments

Comments
 (0)