From a2921297fe7d19bee1ae840aaaa44abaf9e7411f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 11 Apr 2025 16:13:35 +0400 Subject: [PATCH] Fix seeds The CreateAccount service has moved to a namespace --- db/seeds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 5153b2b..9a91f9a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,7 +7,7 @@ Sidekiq::Testing.inline! do puts "Create user: admin" - CreateAccount.call(account: { + UserManager::CreateAccount.call(account: { username: "admin", domain: "kosmos.org", email: "admin@example.com", password: "admin is admin", confirmed: true }) @@ -20,7 +20,7 @@ Sidekiq::Testing.inline! do email = Faker::Internet.unique.email next if username.length < 3 - CreateAccount.call(account: { + UserManager::CreateAccount.call(account: { username: username, domain: "kosmos.org", email: email, password: "user is user", confirmed: true })