Fix typo and field name in history event

This fixes https://bugs.taler.net/n/6022
This commit is contained in:
Florian Dold 2020-01-07 17:29:19 +01:00
parent bbe486c779
commit 0842fab154
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 4 additions and 4 deletions

View File

@ -339,7 +339,7 @@ export async function getHistory(
eventId: makeEventId(HistoryEventType.TipAccepted, tip.tipId), eventId: makeEventId(HistoryEventType.TipAccepted, tip.tipId),
timestamp: tip.acceptedTimestamp, timestamp: tip.acceptedTimestamp,
tipId: tip.tipId, tipId: tip.tipId,
tipAmount: Amounts.toString(tip.amount), tipAmountRaw: Amounts.toString(tip.amount),
}); });
} }
}); });

View File

@ -155,14 +155,14 @@ export interface HistoryTipAcceptedEvent {
/** /**
* Raw amount of the tip, without extra fees that apply. * Raw amount of the tip, without extra fees that apply.
*/ */
tipRaw: string; tipAmountRaw: string;
} }
/** /**
* History event to indicate that the user has accepted a tip. * History event to indicate that the user has accepted a tip.
*/ */
export interface HistoryTipDeclinedEvent { export interface HistoryTipDeclinedEvent {
type: HistoryEventType.TipAccepted; type: HistoryEventType.TipDeclined;
/** /**
* Point in time when the tip has been declined. * Point in time when the tip has been declined.
@ -177,7 +177,7 @@ export interface HistoryTipDeclinedEvent {
/** /**
* Raw amount of the tip, without extra fees that apply. * Raw amount of the tip, without extra fees that apply.
*/ */
tipAmount: string; tipAmountRaw: string;
} }
/** /**