Add Rake task for generating wallets
This commit is contained in:
parent
e2ee33a1da
commit
4f20cd0d0a
8
lib/tasks/lndhub.rake
Normal file
8
lib/tasks/lndhub.rake
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace :lndhub do
|
||||||
|
desc "Generate wallets for all users"
|
||||||
|
task :generate_wallets => :environment do |t, args|
|
||||||
|
User.all.each do |user|
|
||||||
|
CreateLndhubWalletJob.perform_later(user)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user