mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 14:43:39 +00:00
feat: add the ability to make email optional (#994)
This commit is contained in:
@@ -37,7 +37,7 @@ func (j *ApiKeyEmailJobs) checkAndNotifyExpiringApiKeys(ctx context.Context) err
|
||||
}
|
||||
|
||||
for _, key := range apiKeys {
|
||||
if key.User.Email == "" {
|
||||
if key.User.Email == nil {
|
||||
continue
|
||||
}
|
||||
err = j.apiKeyService.SendApiKeyExpiringSoonEmail(ctx, key)
|
||||
|
||||
Reference in New Issue
Block a user