fix(docs): invalid snippet code

Signed-off-by: Caio Augusto <caioamfr@gmail.com>
This commit is contained in:
Caio Augusto
2024-06-21 11:02:05 -03:00
committed by GitHub
parent 32d1b5928f
commit 5c3760b61c
+3 -3
View File
@@ -281,14 +281,14 @@ export async function createRouter(
allow: ['user'],
});
const userInfo = await userInfo.getUserInfo(credentials);
const user = await userInfo.getUserInfo(credentials);
res.json({
// The catalog entity ref of the user.
userEntityRef: userInfo.userEntityRef,
userEntityRef: user.userEntityRef,
// The list of entities that this user or any teams this user is a part of owns.
ownershipEntityRefs: userInfo.ownershipEntityRefs,
ownershipEntityRefs: user.ownershipEntityRefs,
});
});