Fix API calls to use npub instead of identifier

- Updated getUserInfo to send npub field instead of identifier
- Updated whitelistUser to send npub field instead of identifier
- Resolves 422 Unprocessable Content error from backend API
This commit is contained in:
Michilis
2025-07-01 19:18:29 +00:00
parent 9faf7b5cef
commit bb3b5604a1

View File

@@ -11,7 +11,7 @@ export const apiService = {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify({ body: JSON.stringify({
identifier: pubkey, npub: pubkey,
}), }),
}); });
@@ -48,7 +48,7 @@ export const apiService = {
'X-Api-Key': apiKey, 'X-Api-Key': apiKey,
}, },
body: JSON.stringify({ body: JSON.stringify({
identifier: pubkey, npub: pubkey,
}), }),
}); });