chore(core): Update all refs from cli/src/databases to @n8n/db (#15708)

This commit is contained in:
Iván Ovejero
2025-05-27 11:41:27 +02:00
committed by GitHub
parent ca0b38d64e
commit 38137d8bc3
8 changed files with 10 additions and 13 deletions

View File

@@ -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 () => {

View File

@@ -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 () => {

View File

@@ -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 () => {