mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 22:06:02 +08:00
DEV: Fix build
Follow up to 0653750fbf7d690f96ef064932b3dd44550bcb45.
This commit is contained in:
parent
0653750fbf
commit
2e8f54e9ee
@ -8,7 +8,7 @@ class AddKeyHashToUserApiKey < ActiveRecord::Migration[6.0]
|
||||
loop do
|
||||
rows = DB
|
||||
.query("SELECT id, key FROM user_api_keys WHERE key_hash IS NULL LIMIT #{batch_size}")
|
||||
.map { |row| { id: row.id, key_hash: Digest::SHA256.hexdigest(key) } }
|
||||
.map { |row| { id: row.id, key_hash: Digest::SHA256.hexdigest(row.key) } }
|
||||
|
||||
break if rows.size == 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user