Return the new emails only
This commit is contained in:
parent
b9ab1d3761
commit
28d4ddeb50
|
@ -180,7 +180,7 @@ func InviteMembersResolver(ctx context.Context, params model.InviteMemberInput)
|
||||||
|
|
||||||
InvitedUsers := []*model.User{}
|
InvitedUsers := []*model.User{}
|
||||||
|
|
||||||
for _, email := range emails {
|
for _, email := range newEmails {
|
||||||
user, err := db.Provider.GetUserByEmail(ctx, email)
|
user, err := db.Provider.GetUserByEmail(ctx, email)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user