mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -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() {
|
flushPageEvents() {
|
||||||
const queue = this.pageEventQueue;
|
const queue = this.pageEventQueue;
|
||||||
this.pageEventQueue = [];
|
this.pageEventQueue = [];
|
||||||
|
|
|
@ -140,6 +140,7 @@ export const useUsersStore = defineStore(STORES.USERS, () => {
|
||||||
const unsetCurrentUser = () => {
|
const unsetCurrentUser = () => {
|
||||||
currentUserId.value = null;
|
currentUserId.value = null;
|
||||||
currentUserCloudInfo.value = null;
|
currentUserCloudInfo.value = null;
|
||||||
|
telemetry.reset();
|
||||||
RBACStore.setGlobalScopes([]);
|
RBACStore.setGlobalScopes([]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -374,11 +375,8 @@ export const useUsersStore = defineStore(STORES.USERS, () => {
|
||||||
globalRoleName,
|
globalRoleName,
|
||||||
personalizedNodeTypes,
|
personalizedNodeTypes,
|
||||||
addUsers,
|
addUsers,
|
||||||
setCurrentUser,
|
|
||||||
loginWithCookie,
|
loginWithCookie,
|
||||||
initialize,
|
initialize,
|
||||||
unsetCurrentUser,
|
|
||||||
deleteUserById,
|
|
||||||
setPersonalizationAnswers,
|
setPersonalizationAnswers,
|
||||||
loginWithCreds,
|
loginWithCreds,
|
||||||
logout,
|
logout,
|
||||||
|
|
Loading…
Reference in a new issue