feat(templates): add service language template management
Add normalized service and template catalogs, scoped administration, migration, validation, and regression coverage. Ref: IT-1601
This commit is contained in:
+8
-1
@@ -39,7 +39,14 @@ internal sealed class CreateEmailTemplateHandler
|
||||
Variables = request.Variables
|
||||
};
|
||||
|
||||
await _templates.AddAsync(template, cancellationToken);
|
||||
try
|
||||
{
|
||||
await _templates.AddAsync(template, cancellationToken);
|
||||
}
|
||||
catch (EmailTemplateWriteException error)
|
||||
{
|
||||
return Failure<Guid>(error.Message, error.IsConflict ? ServiceErrorCode.Conflict : ServiceErrorCode.InvalidRequest);
|
||||
}
|
||||
|
||||
return Success(template.Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user