fix: some api bug
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"juwan-backend/app/shop/rpc/internal/models/schema"
|
||||
"juwan-backend/app/shop/rpc/internal/models/shops"
|
||||
"time"
|
||||
|
||||
@@ -75,7 +76,7 @@ func (l *UpdateShopsLogic) UpdateShops(in *pb.UpdateShopsReq) (*pb.UpdateShopsRe
|
||||
SetAllowIndependentOrders(in.AllowIndependentOrders)
|
||||
|
||||
if len(in.Announcements) > 0 {
|
||||
updater = updater.SetAnnouncements(in.Announcements)
|
||||
updater = updater.SetAnnouncements(schema.TextArray{Elements: in.Announcements, Valid: true})
|
||||
}
|
||||
|
||||
if in.TemplateConfig != "" {
|
||||
|
||||
Reference in New Issue
Block a user