Browse Source

[test] update

pull/719/head
Louis Lam 3 years ago
parent
commit
bc3e3f9118
  1. 3
      extra/reset-password.js

3
extra/reset-password.js

@ -17,10 +17,9 @@ const main = async () => {
await Database.connect();
try {
const user = await R.findOne("user");
// No need to actually reset the password for testing, just make sure no connection problem. It is ok for now.
if (!process.env.TEST_BACKEND) {
const user = await R.findOne("user");
if (! user) {
throw new Error("user not found, have you installed?");
}

Loading…
Cancel
Save