We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getCurrentUser
1 parent bdb845b commit d3bf68cCopy full SHA for d3bf68c
.changeset/young-cases-play.md
@@ -0,0 +1,5 @@
1
+---
2
+'@o2s/integrations.mocked': patch
3
4
+
5
+changed the `getCurrentUser` behavior to always return the same user
packages/integrations/mocked/src/modules/users/users.mapper.ts
@@ -81,8 +81,7 @@ export const mapUser = (id?: string): Users.Model.User | undefined => {
81
if (id) {
82
return users.find((user) => user.id === id);
83
}
84
- const randomIndex = Math.floor(Math.random() * users.length);
85
- return users[randomIndex];
+ return MOCK_USER_2;
86
};
87
88
export const mapUsers = (options: Users.Request.GetUsersQuery): Users.Model.Users => {
0 commit comments