1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: remove system user's email in db. (#5849)

Updates it from 'system@getunleash.io' to `null`. We don't have that
address registered (and probably don't want it), so we'll leave it
empty.

This is a companion PR to
https://github.com/Unleash/unleash/pull/5893. With both of those
merged, the system user in the DB should match the one defined in
`core.ts`
This commit is contained in:
Thomas Heartman 2024-01-16 11:15:29 +05:30 committed by GitHub
parent 65eb8956e1
commit 4564c97927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`UPDATE users SET email = NULL WHERE id = -1337;`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`UPDATE users SET email = 'system@getunleash.io' WHERE id = -1337;`,
callback,
);
};