Skip to content

Commit

Permalink
Merge pull request #2071 from solliancenet/cp_explode_prompts
Browse files Browse the repository at this point in the history
Add prompts to exploded objects collection
  • Loading branch information
ciprianjichici authored Dec 13, 2024
2 parents 22b1ab2 + 77ef0dd commit 31f3b6a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,14 @@ await cosmosDBService.PatchOperationsItemPropertiesAsync<LongRunningOperationCon
}

break;
case PromptResourceTypeNames.Prompts:
var prompt = await promptResourceProvider.GetResourceAsync<PromptBase>(
resourceObjectId.ObjectId,
currentUserIdentity);
explodedObjectsManager.TryAdd(
resourceObjectId.ObjectId,
prompt);
break;

default:
throw new OrchestrationException($"Unknown resource type '{resourcePath.MainResourceTypeName}'.");
Expand Down

0 comments on commit 31f3b6a

Please sign in to comment.