mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-09 16:53:59 +02:00
added status modal after import recipients
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
1 parent
cbaca17756
commit
170f92aa72
6 files changed
+647
-38
No files matched your search
@@ -490,7 +490,7 @@ func (r *Recipient) Import(g *gin.Context) {
|
||||
if !req.IgnoreOverwriteEmptyFields.IsSpecified() || req.IgnoreOverwriteEmptyFields.IsNull() {
|
||||
req.IgnoreOverwriteEmptyFields = nullable.NewNullableWithValue(true)
|
||||
}
|
||||
_, err := r.RecipientService.Import(
|
||||
result, err := r.RecipientService.Import(
|
||||
g,
|
||||
session,
|
||||
req.Recipients,
|
||||
@@ -500,7 +500,7 @@ func (r *Recipient) Import(g *gin.Context) {
|
||||
if ok := r.handleErrors(g, err); !ok {
|
||||
return
|
||||
}
|
||||
r.Response.OK(g, &gin.H{})
|
||||
r.Response.OK(g, result)
|
||||
}
|
||||
|
||||
// DeleteByID deletes a recipient by id
|
||||
|
||||
@@ -221,7 +221,7 @@ func (r *RecipientGroup) Import(g *gin.Context) {
|
||||
req.IgnoreOverwriteEmptyFields = nullable.NewNullableWithValue(true)
|
||||
}
|
||||
|
||||
err := r.RecipientGroupService.Import(
|
||||
result, err := r.RecipientGroupService.Import(
|
||||
g,
|
||||
session,
|
||||
req.Recipients,
|
||||
@@ -232,7 +232,7 @@ func (r *RecipientGroup) Import(g *gin.Context) {
|
||||
if ok := r.handleErrors(g, err); !ok {
|
||||
return
|
||||
}
|
||||
r.Response.OK(g, &gin.H{})
|
||||
r.Response.OK(g, result)
|
||||
}
|
||||
|
||||
// AddRecipients adds recipients to a recipient group
|
||||
|
||||
Reference in new issue
Block a user