In Go, when a string attribute is explicitly noted at string for serialization, outer quotes are added ". I have no idea if it's intentional, but probably.
Typically, the WalletListInput.ExternalCustomerID will result in this URL:
/api/v1/wallets?external_customer_id=%22julien%22
Hence, the external_id we look for the DB is "julien", not julien.
SELECT
"customers".*
FROM
"customers"
WHERE
"customers"."deleted_at" IS NULL
AND "customers"."organization_id" = "external_id"
AND "customers"."external_id" = "\"julien\""
LIMIT 1
In Go, when a string attribute is explicitly noted at
string
for serialization, outer quotes are added"
. I have no idea if it's intentional, but probably.Typically, the
WalletListInput.ExternalCustomerID
will result in this URL:Hence, the external_id we look for the DB is
"julien"
, notjulien
.Example