diff options
| author | Adam Soltys <[email protected]> | 2023-03-18 07:06:37 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-18 07:06:47 +0000 |
| commit | ee9e8c1169dade53aab0f77a78d5c0c006373622 (patch) | |
| tree | a872a5712162aeee340c41f9bbea0a50ecdcf7f8 /lib/utils.js | |
| parent | 814bf1d935557d7fa154d4265aa769a33828eb47 (diff) | |
| download | coinos-server-ee9e8c1169dade53aab0f77a78d5c0c006373622.tar.gz coinos-server-ee9e8c1169dade53aab0f77a78d5c0c006373622.zip | |
duplicate function
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 5 |
1 files changed, 0 insertions, 5 deletions
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); |
