You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e1ef7b2
Browse filesBrowse the repository at this point in the historyBrowse files
defaultDeleteNoticeSubject="Your organization was deleted"
30
30
defaultDeleteNoticeBody=`{{if .User.Title}}Hi {{.User.Title}},{{else}}Hi,{{end}}<br><br>Your organization <b>{{if .Org.Title}}{{.Org.Title}}{{else}}{{.Org.Name}}{{end}}</b> was deleted{{if .DeletedBy}} by <b>{{.DeletedBy}}</b>{{end}}.{{if .Purchased}} Unused purchased tokens will be settled by the support team.{{end}}`
31
+
32
+
defaultUserDeleteNoticeSubject="Your account was deleted"
33
+
defaultUserDeleteNoticeBody=`{{if .User.Title}}Hi {{.User.Title}},{{else}}Hi,{{end}}<br><br>Your account <b>{{.User.Email}}</b> was deleted.`
31
34
)
32
35
36
+
typeuserDeleteNoticeDatastruct {
37
+
User user.User
38
+
}
39
+
33
40
typedeleteNoticeDatastruct {
34
41
// Amount is the total number of tokens the delete forfeited.
slog.WarnContext(ctx, "the organization was deleted but no owner could be notified", "org_id", org.ID, "amount", notice.Amount, "purchased", notice.Purchased)
203
210
return
204
211
}
205
-
subjectTpl:=d.deleteNoticeConfig.Subject
206
-
ifsubjectTpl=="" {
207
-
subjectTpl=defaultDeleteNoticeSubject
208
-
}
209
-
bodyTpl:=d.deleteNoticeConfig.Body
210
-
ifbodyTpl=="" {
211
-
bodyTpl=defaultDeleteNoticeBody
212
-
}
213
212
// the templates are the same for every owner; parse them once
0 commit comments