Skip to content
Snippets Groups Projects
Commit 26e1f793 authored by Moul's avatar Moul
Browse files

BMA.tx Re-introduce empty 'receiving' field

Breaking change for Silkaj/DuniterPy already in Debian
which has this field as mandatory in jsonschema
parent f7c8fea1
No related branches found
No related tags found
1 merge request!1438BMA.tx Re-introduce empty 'receiving' field + release v1.8.7 as stable
...@@ -154,6 +154,7 @@ export class TransactionBinding extends AbstractController { ...@@ -154,6 +154,7 @@ export class TransactionBinding extends AbstractController {
dbTxHistory: { dbTxHistory: {
sent?: DBTx[]; sent?: DBTx[];
received?: DBTx[]; received?: DBTx[];
receiving?: DBTx[];
sending?: DBTx[]; sending?: DBTx[];
pending?: DBTx[]; pending?: DBTx[];
} }
...@@ -164,6 +165,7 @@ export class TransactionBinding extends AbstractController { ...@@ -164,6 +165,7 @@ export class TransactionBinding extends AbstractController {
history: { history: {
sending: dbTxHistory.sending?.map(dbtx2HttpTxOfHistory) || [], sending: dbTxHistory.sending?.map(dbtx2HttpTxOfHistory) || [],
received: dbTxHistory.received?.map(dbtx2HttpTxOfHistory) || [], received: dbTxHistory.received?.map(dbtx2HttpTxOfHistory) || [],
receiving: dbTxHistory.receiving?.map(dbtx2HttpTxOfHistory) || [],
sent: dbTxHistory.sent?.map(dbtx2HttpTxOfHistory) || [], sent: dbTxHistory.sent?.map(dbtx2HttpTxOfHistory) || [],
pending: dbTxHistory.pending?.map(dbtx2HttpTxOfHistory) || [], pending: dbTxHistory.pending?.map(dbtx2HttpTxOfHistory) || [],
}, },
......
...@@ -876,6 +876,7 @@ export const TxHistory = { ...@@ -876,6 +876,7 @@ export const TxHistory = {
sent: [TxOfHistory], sent: [TxOfHistory],
received: [TxOfHistory], received: [TxOfHistory],
sending: [TxOfHistory], sending: [TxOfHistory],
receiving: [TxOfHistory],
pending: [TxOfHistory], pending: [TxOfHistory],
}, },
}; };
...@@ -887,6 +888,7 @@ export interface HttpTxHistory { ...@@ -887,6 +888,7 @@ export interface HttpTxHistory {
sent: HttpTxOfHistory[]; sent: HttpTxOfHistory[];
received: HttpTxOfHistory[]; received: HttpTxOfHistory[];
sending: HttpTxOfHistory[]; sending: HttpTxOfHistory[];
receiving: HttpTxOfHistory[];
pending: HttpTxOfHistory[]; pending: HttpTxOfHistory[];
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment