Skip to content

Commit

Permalink
Fix missing definition that caused compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Misterblue committed Mar 22, 2021
1 parent 2992085 commit 2cef6ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Entities/DomainFields.ts
Expand Up @@ -18,6 +18,7 @@ import Config from '@Base/config';
import { Entity } from '@Entities/Entity';

import { Maturity } from '@Entities/Sets/Maturity';
import { Visibility } from '@Entities/Sets/Visibility';
import { Restriction } from '@Entities/Sets/Restriction';

import { Perm } from '@Route-Tools/Perm';
Expand Down
8 changes: 4 additions & 4 deletions src/Entities/EntityFilters/PlaceFilterInfo.ts
Expand Up @@ -180,15 +180,15 @@ export class PlaceFilterInfo extends CriteriaFilter {
this._doingQuery = true;
const criteria:VKeyedCollection = {};
if (this._maturity) {
criteria['maturity'] = { '$in': this._maturity }
criteria.maturity = { '$in': this._maturity }
};
if (this._tags) {
criteria['tags'] = { '$in': this._tags }
criteria.tags = { '$in': this._tags }
};
if (this._search) {
criteria['name'] = { '$regex': this._search, '$options': 'i' }
criteria.name = { '$regex': this._search, '$options': 'i' }
};
criteria['visibility'] = { "$or": [ { "visibility": { "$exists": false }},
criteria.visibility = { "$or": [ { "visibility": { "$exists": false }},
{ "visibility": Visibility.OPEN },
] };
return criteria;
Expand Down

0 comments on commit 2cef6ba

Please sign in to comment.