mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore(core): Update all refs from cli/src/databases to @n8n/db (#15708)
This commit is contained in:
@@ -11,7 +11,7 @@ const userRepository = mockInstance(UserRepository);
|
||||
describe('Ldap/helpers', () => {
|
||||
describe('updateLdapUserOnLocalDb', () => {
|
||||
// We need to use `save` so that that the subscriber in
|
||||
// packages/cli/src/databases/entities/Project.ts receives the full user.
|
||||
// packages/@n8n/db/src/entities/Project.ts receives the full user.
|
||||
// With `update` it would only receive the updated fields, e.g. the `id`
|
||||
// would be missing.
|
||||
test('does not use `Repository.update`, but `Repository.save` instead', async () => {
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('UserService', () => {
|
||||
|
||||
describe('update', () => {
|
||||
// We need to use `save` so that that the subscriber in
|
||||
// packages/cli/src/databases/entities/Project.ts receives the full user.
|
||||
// packages/@n8n/db/src/entities/Project.ts receives the full user.
|
||||
// With `update` it would only receive the updated fields, e.g. the `id`
|
||||
// would be missing.
|
||||
it('should use `save` instead of `update`', async () => {
|
||||
|
||||
@@ -14,7 +14,7 @@ mockInstance(AuthIdentityRepository);
|
||||
describe('sso/saml/samlHelpers', () => {
|
||||
describe('updateUserFromSamlAttributes', () => {
|
||||
// We need to use `save` so that that the subscriber in
|
||||
// packages/cli/src/databases/entities/Project.ts receives the full user.
|
||||
// packages/@n8n/db/src/entities/Project.ts receives the full user.
|
||||
// With `update` it would only receive the updated fields, e.g. the `id`
|
||||
// would be missing.
|
||||
test('does not user `Repository.update`, but `Repository.save` instead', async () => {
|
||||
|
||||
Reference in New Issue
Block a user