chore: update user setting api

This commit is contained in:
Steven
2023-11-30 23:08:54 +08:00
parent fff42ebc0d
commit c1f55abaeb
12 changed files with 1306 additions and 230 deletions

View File

@ -76,8 +76,8 @@ func (s *APIV2Service) UpdateWebhook(ctx context.Context, request *apiv2pb.Updat
}
update := &store.UpdateWebhook{}
for _, path := range request.UpdateMask.Paths {
switch path {
for _, field := range request.UpdateMask.Paths {
switch field {
case "row_status":
rowStatus := storepb.RowStatus(storepb.RowStatus_value[request.Webhook.RowStatus.String()])
update.RowStatus = &rowStatus