Quick hotfix

This commit is contained in:
Greg 2021-03-26 16:24:24 +01:00
parent 0553e9fe98
commit 5c5a53fdd2

View file

@ -53,7 +53,10 @@ public class Mongo {
String response = db.getCollection(collection).find(whereQuery).cursor().next().toJson();
return new JSONObject(response);
} catch (NoSuchElementException e) {
insertUser(id);
if (collection.equals("user"))
insertUser(id);
else if (collection.equals("server"))
insertGuild(id);
String response2 = db.getCollection(collection).find(whereQuery).cursor().next().toJson();
return new JSONObject(response2);
}