clear secret

This commit is contained in:
Tom Moor committed 2024-10-01 22:17:45 -04:00
1 parent 19d5ef5694
commit 6e07aa877f
1 file changed
+2
@@ -25,6 +25,8 @@ export default async function main(exit = false, limit = 100) {
console.log(`Migrating ${apiKey.id}…`);
apiKey.value = apiKey.secret;
apiKey.hash = ApiKey.hash(apiKey.secret);
// @ts-expect-error secret is deprecated
apiKey.secret = null;
await apiKey.save({ transaction });
}
} catch (err) {