BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Adjust the Create Contact Group api
lotkc85cfa8362c5
diff --git a/core/internal/controller/contact/contact_v1_create_group.go b/core/internal/controller/contact/contact_v1_create_group.goindex 94921aff..7b43a422 100644--- a/core/internal/controller/contact/contact_v1_create_group.go+++ b/core/internal/controller/contact/contact_v1_create_group.go@@ -56,8 +56,9 @@ func (c *ControllerV1) CreateGroup(ctx context.Context, req *v1.CreateGroupReq)// if type 2 or 3, need to handle file importif req.CreateType == 2 || req.CreateType == 3 {if req.FileData == "" {- res.Code = 400- res.SetError(gerror.New(public.LangCtx(ctx, "File content cannot be empty")))+ //res.Code = 400+ //res.SetError(gerror.New(public.LangCtx(ctx, "File content cannot be empty")))+ res.SetSuccess(public.LangCtx(ctx, "Group created successfully"))return}