fix: hash-api-keys migration accesses columns before creation, closes #8336

This commit is contained in:
Tom Moor
2025-02-04 19:41:00 -05:00
parent 6f49cb62c3
commit 2443be9329
@@ -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"]],