diff options
| author | Adam Soltys <[email protected]> | 2025-09-08 11:13:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-08 11:13:32 -0700 |
| commit | fd63ceacaf9b190d43dbaf6a382d13525e45cdf0 (patch) | |
| tree | 51b5faff2841d629dbbe377e6ee993a8d90c9a67 | |
| parent | 440991e905586242e5b9b1bb53b4dbdb36f5f3fb (diff) | |
| download | coinos-server-fd63ceacaf9b190d43dbaf6a382d13525e45cdf0.tar.gz coinos-server-fd63ceacaf9b190d43dbaf6a382d13525e45cdf0.zip | |
check for syncSquare
| -rw-r--r-- | lib/register.ts | 2 | ||||
| -rw-r--r-- | lib/square.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/register.ts b/lib/register.ts index 8e999e76..8b893d6c 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -2,7 +2,7 @@ import config from "$config"; import countries from "$lib/countries"; import { db, s } from "$lib/db"; import { l, warn } from "$lib/logging"; -import { fail, getUser } from "$lib/utils"; +import { fail } from "$lib/utils"; import { bytesToHex, randomBytes } from "@noble/hashes/utils"; import { got } from "got"; import { getPublicKey, nip19 } from "nostr-tools"; diff --git a/lib/square.ts b/lib/square.ts index f491effe..272d9872 100644 --- a/lib/square.ts +++ b/lib/square.ts @@ -8,7 +8,7 @@ const { appId, environment } = config.square; export const squarePayment = async (p, user) => { let square = await g(`${user.id}:square`); - if (!square) return; + if (!(square && user.syncSquare)) return; let client = new SquareClient({ environment, |
