mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: hash-api-keys migration accesses columns before creation, closes #8336
This commit is contained in:
@@ -12,6 +12,7 @@ export default async function main(exit = false, limit = 100) {
|
||||
let apiKeys: ApiKey[] = [];
|
||||
await sequelize.transaction(async (transaction) => {
|
||||
apiKeys = await ApiKey.unscoped().findAll({
|
||||
attributes: ["id", "secret", "value", "hash"],
|
||||
limit,
|
||||
offset: page * limit,
|
||||
order: [["createdAt", "ASC"]],
|
||||
|
||||
Reference in New Issue
Block a user