X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/125dd3b1e5f34156b002951f504f5346cc5d7e8d..HEAD:/services/api/lib/tasks/manage_long_lived_tokens.rake diff --git a/services/api/lib/tasks/manage_long_lived_tokens.rake b/services/api/lib/tasks/manage_long_lived_tokens.rake index 7a665ff7e7..70a0f24284 100644 --- a/services/api/lib/tasks/manage_long_lived_tokens.rake +++ b/services/api/lib/tasks/manage_long_lived_tokens.rake @@ -31,7 +31,7 @@ namespace :db do end if (auth.user.uuid =~ /-tpzed-000000000000000/).nil? and (auth.user.uuid =~ /-tpzed-anonymouspublic/).nil? CurrentApiClientHelper.act_as_system_user do - auth.update_attributes!(expires_at: exp_date) + auth.update!(expires_at: exp_date) end token_count += 1 end