type error
This commit is contained in:
parent
7eba6a6c3b
commit
18904a4a6d
@ -862,15 +862,16 @@ export class Wallet {
|
|||||||
/**
|
/**
|
||||||
* Retrive the full event history for this wallet.
|
* Retrive the full event history for this wallet.
|
||||||
*/
|
*/
|
||||||
getHistory(): Promise<any[]> {
|
getHistory(): Promise<any> {
|
||||||
function collect(x, acc) {
|
function collect(x, acc) {
|
||||||
acc.push(x);
|
acc.push(x);
|
||||||
return {history: acc};
|
return acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Query(this.db)
|
return Query(this.db)
|
||||||
.iter("history", {indexName: "timestamp"})
|
.iter("history", {indexName: "timestamp"})
|
||||||
.reduce(collect, [])
|
.reduce(collect, [])
|
||||||
|
.then(acc => ({history: acc}));
|
||||||
}
|
}
|
||||||
|
|
||||||
checkRepurchase(contract: Contract): Promise<CheckRepurchaseResult> {
|
checkRepurchase(contract: Contract): Promise<CheckRepurchaseResult> {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"description": "Privacy preserving and transparent payments",
|
"description": "Privacy preserving and transparent payments",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "GNU Taler Wallet (git)",
|
"name": "GNU Taler Wallet (git)",
|
||||||
"version": "0.5.12",
|
"version": "0.5.14",
|
||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
Loading…
Reference in New Issue
Block a user