mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 08:27:14 +02:00
added status modal after import recipients
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -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