mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-14 23:47:00 +08:00
[test] update
This commit is contained in:
@@ -17,10 +17,9 @@ const main = async () => {
|
|||||||
await Database.connect();
|
await Database.connect();
|
||||||
|
|
||||||
try {
|
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.
|
// 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) {
|
if (!process.env.TEST_BACKEND) {
|
||||||
|
const user = await R.findOne("user");
|
||||||
if (! user) {
|
if (! user) {
|
||||||
throw new Error("user not found, have you installed?");
|
throw new Error("user not found, have you installed?");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user