root user

This commit is contained in:
archer 2023-07-30 12:53:54 +08:00
parent 40200c7c71
commit bd137d7595
No known key found for this signature in database
GPG Key ID: 569A5660D2379E28

View File

@ -73,7 +73,8 @@ async function initRootUser() {
await User.findOneAndUpdate(
{ username: 'root' },
{
password: createHashPassword(psw)
password: createHashPassword(psw),
balance: 999999 * PRICE_SCALE
}
);
} else {