From 604fe6b7c20f93d1207ac6606164ebb4112a75d1 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Fri, 28 Jun 2024 11:33:32 -0700 Subject: [PATCH] Remove mirage aamc pcrs customizations Our new inflector rules seem to be working now. --- packages/ilios-common/addon-mirage-support/get-all.js | 3 --- packages/ilios-common/addon-mirage-support/get-name.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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',