mirror of
https://github.com/langgenius/dify.git
synced 2026-07-27 15:08:35 +08:00
fix(web): stop reporting workspace status (#39626)
This commit is contained in:
parent
e1b55f54e6
commit
58e2bcbba1
@ -552,7 +552,8 @@ describe('Console bootstrap', () => {
|
||||
})
|
||||
await waitFor(() => {
|
||||
expect(setUserId).toHaveBeenCalledWith('user@example.com')
|
||||
expect(setUserProperties).toHaveBeenCalledWith(
|
||||
const properties = vi.mocked(setUserProperties).mock.calls.at(-1)?.[0]
|
||||
expect(properties).toEqual(
|
||||
expect.objectContaining({
|
||||
email: 'user@example.com',
|
||||
workspace_id: 'workspace-1',
|
||||
@ -560,6 +561,7 @@ describe('Console bootstrap', () => {
|
||||
workspace_role: 'editor',
|
||||
}),
|
||||
)
|
||||
expect(properties).not.toHaveProperty('workspace_status')
|
||||
expect(flushRegistrationSuccess).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
@ -30,7 +30,6 @@ function buildAmplitudeProperties({
|
||||
properties.workspace_id = currentWorkspace.id
|
||||
properties.workspace_name = currentWorkspace.name
|
||||
properties.workspace_plan = currentWorkspace.plan
|
||||
properties.workspace_status = currentWorkspace.status
|
||||
properties.workspace_role = currentWorkspace.role
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user