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 {
dbTxHistory: {
sent?: DBTx[];
received?: DBTx[];
receiving?: DBTx[];
sending?: DBTx[];
pending?: DBTx[];
}
......@@ -164,6 +165,7 @@ export class TransactionBinding extends AbstractController {
history: {
sending: dbTxHistory.sending?.map(dbtx2HttpTxOfHistory) || [],
received: dbTxHistory.received?.map(dbtx2HttpTxOfHistory) || [],
receiving: dbTxHistory.receiving?.map(dbtx2HttpTxOfHistory) || [],
sent: dbTxHistory.sent?.map(dbtx2HttpTxOfHistory) || [],
pending: dbTxHistory.pending?.map(dbtx2HttpTxOfHistory) || [],
},
......
......@@ -876,6 +876,7 @@ export const TxHistory = {
sent: [TxOfHistory],
received: [TxOfHistory],
sending: [TxOfHistory],
receiving: [TxOfHistory],
pending: [TxOfHistory],
},
};
......@@ -887,6 +888,7 @@ export interface HttpTxHistory {
sent: HttpTxOfHistory[];
received: HttpTxOfHistory[];
sending: HttpTxOfHistory[];
receiving: HttpTxOfHistory[];
pending: HttpTxOfHistory[];
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment