Skip to content

Commit

Permalink
fix(geographical-categories): Set "isDeleted" to false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Oct 3, 2023
1 parent be251d3 commit 13cd9d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/api/commons/queries/geographical-categories.elastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default [
id: 1,
nameFr: 1,
level: 1,
isDeleted: { $ifNull: ['$isDeleted', false] },
},
},
];
12 changes: 10 additions & 2 deletions src/api/search/search.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ import esClient from '../../services/elastic.service';
import logger from '../../services/logger.service';
import { ServerError } from '../commons/http-errors';
import {
categories, geographicalCategories,
legalcategories, officialtexts, persons, prizes, projects, structures, terms, users
categories,
geographicalCategories,
legalcategories,
officialtexts,
persons,
prizes,
projects,
structures,
terms,
users,
} from '../resources';

const allowedTypes = [categories, geographicalCategories, legalcategories, officialtexts, persons, prizes, projects, structures, terms, users];
Expand Down

0 comments on commit 13cd9d6

Please sign in to comment.