mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
call createTransaction directly from login-server
This commit is contained in:
parent
40dbcb6a92
commit
afdf112a9c
@ -23,12 +23,14 @@ export class TransactionResolver {
|
|||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const payload = {
|
const payload = {
|
||||||
session_id: sessionId,
|
session_id: sessionId,
|
||||||
email,
|
target_email: email,
|
||||||
amount,
|
amount,
|
||||||
memo,
|
memo,
|
||||||
auto_sign: true,
|
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) {
|
if (!result.success) {
|
||||||
throw new Error(result.data)
|
throw new Error(result.data)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user