Merge pull request #25353 from CaioAugustoo/patch-2

fix(docs): invalid snippet code
This commit is contained in:
Vincenzo Scamporlino
2024-06-21 19:46:25 +02:00
committed by GitHub
+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,
});
});