Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

test: retrieve user profile debug points #830

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shared/profiles/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function profileServerRequest(userId: string, version?: number): Promise<
try {
let url = `${bff.services.legacy.lambdasServer}/profiles/${userId}`
if (version) url = url + `&version=${version}`
else if (!userId.startsWith('default')) url = url + `&no-cache=${Math.random()}`
//else if (!userId.startsWith('default')) url = url + `&no-cache=${Math.random()}`

const response = await fetch(url)

Expand Down
3 changes: 3 additions & 0 deletions packages/shared/session/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ function* authenticate(action: AuthenticateAction) {

// 4. continue with signin/signup (only not in preview)
const isSignUp = avatar.version <= 0 && !PREVIEW
console.log("AAAA " + avatar.version)
console.log("BBBB " + !PREVIEW)
console.log("CCCC " + avatar.name)
if (isSignUp) {
yield put(signUpSetIsSignUp(isSignUp))
yield take(SIGNUP)
Expand Down