From bc3e3f9118277ebfec34598f2063276bc6d7c175 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 16 Oct 2021 13:02:04 +0800 Subject: [PATCH] [test] update --- extra/reset-password.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/reset-password.js b/extra/reset-password.js index 272351ed4..1b48dffd7 100644 --- a/extra/reset-password.js +++ b/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?"); }