File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
doc/docs/guide/configuration Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,14 +116,14 @@ const customMetadataProvider: MetadataProvider = {
116
116
return resource [' _metadata' ]?.[' _link_' + linkName ];
117
117
},
118
118
actionLookup(resource : unknown , actionName : string ): ResourceAction | undefined {
119
- const actionMetadata = resource [' _metadata' ]?.[' _action_' + linkName ];
119
+ const actionMetadata = resource [' _metadata' ]?.[' _action_' + actionName ];
120
120
// ResourceAction has the two keys href and method,
121
121
// therefore we have to bring the metadata into the correct format
122
122
if (actionMetadata ) return { href: actionMetadata .href , method: actionMetadata .verb };
123
123
else return undefined ;
124
124
},
125
125
socketLookup(resource : unknown , socketName : string ): ResourceSocket | undefined {
126
- return resource [' _metadata' ]?.[' _socket_' + linkName ];
126
+ return resource [' _metadata' ]?.[' _socket_' + socketName ];
127
127
}
128
128
}
129
129
```
You can’t perform that action at this time.
0 commit comments