From 33020420942c3aeb15da64ee4e71f3428a165866 Mon Sep 17 00:00:00 2001 From: Ian Saultz <52051793+atierian@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:49:07 -0400 Subject: [PATCH] fix subscription name --- .../appsync-model-introspection-visitor.test.ts.snap | 2 +- .../src/visitors/appsync-model-introspection-visitor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap b/packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap index 49e02d36c..7bd5a6b72 100644 --- a/packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap +++ b/packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap @@ -281,7 +281,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener \\"subscribe\\": { \\"isArray\\": false, \\"isRequired\\": false, - \\"name\\": \\"onAssistantMessageResponsePirateChat\\", + \\"name\\": \\"onCreateAssistantResponsePirateChat\\", \\"type\\": { \\"model\\": \\"ConversationMessagePirateChat\\" }, diff --git a/packages/appsync-modelgen-plugin/src/visitors/appsync-model-introspection-visitor.ts b/packages/appsync-modelgen-plugin/src/visitors/appsync-model-introspection-visitor.ts index 28a6a9fe7..c5e1b7b95 100644 --- a/packages/appsync-modelgen-plugin/src/visitors/appsync-model-introspection-visitor.ts +++ b/packages/appsync-modelgen-plugin/src/visitors/appsync-model-introspection-visitor.ts @@ -503,7 +503,7 @@ export class AppSyncModelIntrospectionVisitor< subscribe: { isArray: false, isRequired: false, - name: `onAssistantMessageResponse${routeName}`, + name: `onCreateAssistantResponse${routeName}`, type: { model: `ConversationMessage${routeName}` }, arguments: { 'sessionId': {