Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTI-361: follow-up issue within tenant rake task upserting settings #235

Merged
merged 1 commit into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/tasks/tenant.rake
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace :tenant do

desc 'Add a new tenant setting'
task :upsert, [:uid, :key, :value] => :environment do |_t, args|
uid = args[:uid]
uid = args[:uid] || ''
key = args[:key]
value = args[:value]

Expand All @@ -164,7 +164,7 @@ namespace :tenant do

desc 'Destroy a setting'
task :destroy, [:uid, :key] => :environment do |_t, args|
uid = args[:uid]
uid = args[:uid] || ''
key = args[:key]

if key.blank?
Expand Down Expand Up @@ -193,7 +193,7 @@ namespace :tenant do
namespace :metadata do
desc 'Show metadata for a tenant. If no id is specified, metadata for all tenants will be shown'
task :show, [:uid] => :environment do |_t, args|
uid = args[:uid]
uid = args[:uid] || ''

if uid.present?
tenant = TaskHelpers.tenant_by('uid', uid)
Expand Down