refactor(editor): Extract users api into rest-api-client package (no-changelog) (#18046)

This commit is contained in:
Alex Grozav
2025-08-07 12:01:10 +03:00
committed by GitHub
parent 743c120880
commit 500d07d813
38 changed files with 134 additions and 123 deletions

View File

@@ -1,4 +1,4 @@
import type { CurrentUserResponse } from '@/Interface';
import type { CurrentUserResponse } from '@n8n/rest-api-client/api/users';
import { useUsersStore } from './users.store';
import { createPinia, setActivePinia } from 'pinia';
@@ -10,7 +10,7 @@ const { loginCurrentUser, inviteUsers } = vi.hoisted(() => {
};
});
vi.mock('@/api/users', () => ({
vi.mock('@n8n/rest-api-client/api/users', () => ({
loginCurrentUser,
}));