From 7ef380241d30995b4b9b3a2d9f05d63d68a4efcd Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 14 Nov 2021 21:49:31 +0100 Subject: [PATCH] fix(seed): fix create method usage Signed-off-by: David Mehren --- src/seed.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/seed.ts b/src/seed.ts index b66300909..0f89ce1f5 100644 --- a/src/seed.ts +++ b/src/seed.ts @@ -57,14 +57,14 @@ createConnection({ users.push(User.create('hardcoded_2', 'Test User 2')); users.push(User.create('hardcoded_3', 'Test User 3')); const notes: Note[] = []; - notes.push(Note.create(undefined, 'test') as Note); - notes.push(Note.create(undefined, 'test2') as Note); - notes.push(Note.create(undefined, 'test3') as Note); + notes.push(Note.create(null, 'test') as Note); + notes.push(Note.create(null, 'test2') as Note); + notes.push(Note.create(null, 'test3') as Note); for (let i = 0; i < 3; i++) { const author = connection.manager.create(Author, Author.create(1)); const user = connection.manager.create(User, users[i]); - const identity = Identity.create(user, ProviderType.LOCAL); + const identity = Identity.create(user, ProviderType.LOCAL, false); identity.passwordHash = await hashPassword(password); connection.manager.create(Identity, identity); author.user = user;