mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
clear secret
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user