mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #699 from gradido/apollo_community_calls
Apollo sendCoins via Login-Server
This commit is contained in:
commit
4d2eb5b216
@ -23,12 +23,14 @@ export class TransactionResolver {
|
||||
): Promise<string> {
|
||||
const payload = {
|
||||
session_id: sessionId,
|
||||
email,
|
||||
amount,
|
||||
target_email: email,
|
||||
amount: amount * 10000,
|
||||
memo,
|
||||
auto_sign: true,
|
||||
transaction_type: 'transfer',
|
||||
blockchain_type: 'mysql',
|
||||
}
|
||||
const result = await apiPost(CONFIG.COMMUNITY_API_URL + 'sendCoins', payload)
|
||||
const result = await apiPost(CONFIG.LOGIN_API_URL + 'createTransaction', payload)
|
||||
if (!result.success) {
|
||||
throw new Error(result.data)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user