diff --git a/packages/ilios-common/addon-mirage-support/get-all.js b/packages/ilios-common/addon-mirage-support/get-all.js index 8f8a9c6e61..51aba81a91 100644 --- a/packages/ilios-common/addon-mirage-support/get-all.js +++ b/packages/ilios-common/addon-mirage-support/get-all.js @@ -6,9 +6,6 @@ const getAll = function (schema, request) { //turn /api/programyears?limit=1 into 'programYears' const modelRegex = /\/api\/([a-z]+).*/i; let modelName = getName(request.url.match(modelRegex)[1]); - if ('aamcpcrses' === modelName.toLowerCase()) { - modelName = 'aamcPcrs'; - } if (!schema[modelName]) { console.error( 'Mirage: The route handler for ' + diff --git a/packages/ilios-common/addon-mirage-support/get-name.js b/packages/ilios-common/addon-mirage-support/get-name.js index 2764364517..1ceb199b9b 100644 --- a/packages/ilios-common/addon-mirage-support/get-name.js +++ b/packages/ilios-common/addon-mirage-support/get-name.js @@ -1,6 +1,6 @@ var models = [ 'aamcMethods', - 'aamcPcrs', + 'aamcPcrses', 'academicYears', 'assessmentOptions', 'courseLearningMaterials',