From ee9e8c1169dade53aab0f77a78d5c0c006373622 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 18 Mar 2023 07:06:37 +0000 Subject: duplicate function --- lib/utils.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 929adbf1..ae794a5e 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -12,11 +12,6 @@ export const wait = async (f, s = 300, n = 50) => { return f(); }; -export const requirePin = async ({ body, user }) => { - if (!user || (user.pin && user.pin !== body.pin)) - throw new Error("Invalid pin"); -}; - export const prod = process.env.NODE_ENV === "production"; export const fail = (msg) => { throw new Error(msg); -- cgit v1.2.3