if running production, throw error if user has less than 50 hours played in standard
This commit is contained in:
parent
5ba77989b1
commit
06359f4490
|
@ -31,6 +31,8 @@ export async function loader({ request }) {
|
|||
if (!["FI", "AX"].includes(me.country.code)) {
|
||||
throw new Error("your not finnish lil bro");
|
||||
}
|
||||
if (process.env.NODE_ENV === "production" && me.statistics.play_time < 180000)
|
||||
throw new Error("Minimum of 50 hours playtime required");
|
||||
|
||||
session.set("userId", data.access_token);
|
||||
|
||||
|
|
Loading…
Reference in New Issue