fix
This commit is contained in:
parent
7dc49e3f50
commit
d5c1a3478e
2 changed files with 1 additions and 2 deletions
|
|
@ -408,7 +408,6 @@ export default class {
|
|||
const app = await this.storage.applicationStorage.GetApplication(ctx.app_id)
|
||||
const isAppUserPayment = ctx.user_id !== app.owner.user_id
|
||||
const serviceFee = this.getSendServiceFee(Types.UserOperationType.OUTGOING_INVOICE, decoded.numSatoshis, isAppUserPayment)
|
||||
// const routingFeeLimit = this.lnd.GetFeeLimitAmount(decoded.numSatoshis)
|
||||
const newSwap = await this.storage.paymentStorage.AddTransactionSwap({
|
||||
app_user_id: ctx.app_user_id,
|
||||
swap_quote_id: res.createdResponse.id,
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ export default class {
|
|||
}
|
||||
|
||||
async GetTransactionSwap(swapOperationId: string, txId?: string) {
|
||||
return this.dbs.FindOne<TransactionSwap>('TransactionSwap', { where: { swap_operation_id: swapOperationId } }, txId)
|
||||
return this.dbs.FindOne<TransactionSwap>('TransactionSwap', { where: { swap_operation_id: swapOperationId, used: false } }, txId)
|
||||
}
|
||||
|
||||
async FinalizeTransactionSwap(swapOperationId: string, txId: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue