MSP-7322 Return httpMethod on get_by_id and set_list

This commit is contained in:
Синельник Тимур Романович committed 2026-03-04 17:17:38 +03:00
1 parent c304645d60
commit 263a6f3952
1 file changed
+6 -4
+6 -4
View File
@@ -62,8 +62,9 @@ func (s AccessList) GetById(ctx context.Context, appId int) ([]domain.MethodInfo
methodInfos := make([]domain.MethodInfo, len(accessList))
for i, access := range accessList {
methodInfos[i] = domain.MethodInfo{
Method: access.Method,
Value: access.Value,
HttpMethod: access.HttpMethod,
Method: access.Method,
Value: access.Value,
}
}
@@ -154,8 +155,9 @@ func (s AccessList) SetList(ctx context.Context, req domain.AccessListSetListReq
methodInfos := make([]domain.MethodInfo, len(accessList))
for i, access := range accessList {
methodInfos[i] = domain.MethodInfo{
Method: access.Method,
Value: access.Value,
HttpMethod: access.HttpMethod,
Method: access.Method,
Value: access.Value,
}
}