mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix: clean up exports, add reset
This commit is contained in:
parent
a150c3d694
commit
ba8df60304
|
@ -144,6 +144,10 @@ export class Telemetry {
|
|||
}
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.rudderStack?.reset();
|
||||
}
|
||||
|
||||
flushPageEvents() {
|
||||
const queue = this.pageEventQueue;
|
||||
this.pageEventQueue = [];
|
||||
|
|
|
@ -140,6 +140,7 @@ export const useUsersStore = defineStore(STORES.USERS, () => {
|
|||
const unsetCurrentUser = () => {
|
||||
currentUserId.value = null;
|
||||
currentUserCloudInfo.value = null;
|
||||
telemetry.reset();
|
||||
RBACStore.setGlobalScopes([]);
|
||||
};
|
||||
|
||||
|
@ -374,11 +375,8 @@ export const useUsersStore = defineStore(STORES.USERS, () => {
|
|||
globalRoleName,
|
||||
personalizedNodeTypes,
|
||||
addUsers,
|
||||
setCurrentUser,
|
||||
loginWithCookie,
|
||||
initialize,
|
||||
unsetCurrentUser,
|
||||
deleteUserById,
|
||||
setPersonalizationAnswers,
|
||||
loginWithCreds,
|
||||
logout,
|
||||
|
|
Loading…
Reference in a new issue