From 024639733fbcf751f6c8833fe8f51664b9a150b1 Mon Sep 17 00:00:00 2001 From: lmd59 Date: Thu, 13 Jun 2024 14:42:57 -0400 Subject: [PATCH] remove TODOs --- service/src/services/BaseService.ts | 1 - service/src/util/inputUtils.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/service/src/services/BaseService.ts b/service/src/services/BaseService.ts index 687ef51..85f7ec2 100644 --- a/service/src/services/BaseService.ts +++ b/service/src/services/BaseService.ts @@ -73,7 +73,6 @@ async function uploadResourcesFromBundle(entries: DetailedEntry[]) { * Inserts Library or Measure resources from Bundle into the database through create or update. */ async function insertBundleResources(entry: DetailedEntry) { - // TODO: make updates here for AUHTHORING/PUBLISHABLE if (entry.resource?.resourceType === 'Library' || entry.resource?.resourceType === 'Measure') { if (entry.isPost) { checkFieldsForCreate(entry.resource); diff --git a/service/src/util/inputUtils.ts b/service/src/util/inputUtils.ts index 8587e47..aab8a25 100644 --- a/service/src/util/inputUtils.ts +++ b/service/src/util/inputUtils.ts @@ -93,7 +93,6 @@ export function checkFieldsForUpdate( ) { if (process.env.AUTHORING !== 'true' || oldResource.status === 'active') { // publishable or active status requires retire functionality - // TODO: is there any other metadata we should allow to update for the retire functionality? if (process.env.AUTHORING !== 'true' && oldResource.status !== 'active') { throw new BadRequestError( `Resource status is currently ${oldResource.status}. Publishable repository service updates may only be made to active status resources.`