Skip to content

Commit

Permalink
refactor: use exposed constants from majifix common
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Aug 15, 2019
1 parent b604c41 commit 056a063
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/priority.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,19 @@ import {
MODEL_NAME_SERVICE,
MODEL_NAME_SERVICEREQUEST,
COLLECTION_NAME_PRIORITY,
PATH_NAME_JURISDICTION,
PATH_NAME_PRIORITY,
checkDependenciesFor,
} from '@codetanzania/majifix-common';

/* local constants */
const DEFAULT_LOCALE = getString('DEFAULT_L0CALE', 'en');
const PATH_NAME_JURISDICTION = 'jurisdiction';
const SCHEMA_OPTIONS = { collection: COLLECTION_NAME_PRIORITY };
const OPTION_SELECT = { name: 1, color: 1 };
const OPTION_AUTOPOPULATE = {
select: { name: 1, color: 1 },
select: OPTION_SELECT,
maxDepth: POPULATION_MAX_DEPTH,
};
const SCHEMA_OPTIONS = { collection: COLLECTION_NAME_PRIORITY };

/* declarations */
let locales = getStrings('LOCALES', ['en']);
Expand Down

0 comments on commit 056a063

Please sign in to comment.