Skip to content

Commit d94f838

Browse files
Fixed typo in documentation (#35)
1 parent c5a0a64 commit d94f838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/docs/guide/configuration/01-metadata-provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ const customMetadataProvider: MetadataProvider = {
116116
return resource['_metadata']?.['_link_' + linkName];
117117
},
118118
actionLookup(resource: unknown, actionName: string): ResourceAction | undefined {
119-
const actionMetadata = resource['_metadata']?.['_action_' + linkName];
119+
const actionMetadata = resource['_metadata']?.['_action_' + actionName];
120120
// ResourceAction has the two keys href and method,
121121
// therefore we have to bring the metadata into the correct format
122122
if(actionMetadata) return { href: actionMetadata.href, method: actionMetadata.verb };
123123
else return undefined;
124124
},
125125
socketLookup(resource: unknown, socketName: string): ResourceSocket | undefined {
126-
return resource['_metadata']?.['_socket_' + linkName];
126+
return resource['_metadata']?.['_socket_' + socketName];
127127
}
128128
}
129129
```

0 commit comments

Comments
 (0)