updateTemplate method
Future<MessageTemplateV1?>
updateTemplate(
- String? correlationId,
- MessageTemplateV1 template
override
Updates a template.
correlation_id
(optional) transaction id to trace execution through call chain.template
an template to be updated. Return (optional) Future that receives updated template Throws error.
Implementation
@override
Future<MessageTemplateV1?> updateTemplate(
String? correlationId, MessageTemplateV1 template) async {
var timing = instrument(correlationId, 'message_templates.update_template');
var result = await controller.updateTemplate(correlationId, template);
timing.endTiming();
return result;
}