Skip to content

Commit

Permalink
use .template.js extension for list messages init resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Oct 3, 2024
1 parent b180b94 commit 7787c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ConversationDirectiveConfiguration } from '../grapqhl-conversation-tran
* @returns {MappingTemplateProvider}
*/
export const listMessageInitMappingTemplate = (config: ConversationDirectiveConfiguration): MappingTemplateProvider => {
const resolver = fs.readFileSync(path.join(__dirname, 'list-messages-init-resolver-fn.js'), 'utf8');
const templateName = `Query.${config.field.name.value}.list-message-init.js`;
const resolver = fs.readFileSync(path.join(__dirname, 'list-messages-init-resolver-fn.template.js'), 'utf8');
const templateName = `Query.${config.field.name.value}.list-messages-init.js`;
return MappingTemplate.s3MappingFunctionCodeFromString(resolver, templateName);
};

0 comments on commit 7787c56

Please sign in to comment.