From dbcfdb2849e21d49feaba8ffb7bbc88fdbef1ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4stle?= Date: Wed, 31 Jan 2024 11:38:56 +0100 Subject: [PATCH] readded finding of crew --- dao/role.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dao/role.go b/dao/role.go index 67d3d63..f6e2fa0 100644 --- a/dao/role.go +++ b/dao/role.go @@ -296,6 +296,7 @@ func AspRoleNotification(ctx context.Context, i map[string]*models.AspBulkUserRo func RoleAdminNotification(ctx context.Context, crewID *models.CrewParam) (err error) { crew := new(models.Crew) + CrewsCollection.FindOne(ctx, crewID.Match(), crew) mail := vcago.NewMailData("netzwerk@vivaconagua.org", "pool-backend", "role_network", "pool", "de") mail.AddContent(models.RoleAdminContent(crew)) vcago.Nats.Publish("system.mail.job", mail)