fix(emailApi): bug fix for expedition
Build and Push Docker image / build-and-push (push) Successful in 2m11s
Details
Build and Push Docker image / build-and-push (push) Successful in 2m11s
Details
This commit is contained in:
parent
9984936881
commit
1f8ff8afe9
|
@ -62,7 +62,7 @@ func sendEmails(app *pocketbase.PocketBase, emailRecord *models.Record) {
|
||||||
registry := template.NewRegistry()
|
registry := template.NewRegistry()
|
||||||
|
|
||||||
// expand the createdMessageRecord to get recipient user and send email notification if recipient is set
|
// expand the createdMessageRecord to get recipient user and send email notification if recipient is set
|
||||||
if errs := app.Dao().ExpandRecord(emailRecord, []string{"recipients, sender"}, nil); len(errs) > 0 {
|
if errs := app.Dao().ExpandRecord(emailRecord, []string{"recipients", "sender"}, nil); len(errs) > 0 {
|
||||||
// return new error with all errors
|
// return new error with all errors
|
||||||
logger.LogErrorF("Error expanding created email record: %v", errs)
|
logger.LogErrorF("Error expanding created email record: %v", errs)
|
||||||
emailRecord.Set("errors", fmt.Sprintf("The email was not sent to anyone due to an error."))
|
emailRecord.Set("errors", fmt.Sprintf("The email was not sent to anyone due to an error."))
|
||||||
|
|
Loading…
Reference in New Issue