This commit is contained in:
Florian Dold 2023-05-24 15:01:59 +02:00
parent 318f544184
commit 7eef3f57d2
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -467,11 +467,11 @@ export type ParsedTombstone =
}
| { tag: TombstoneTag.DeleteRefund; refundGroupId: string };
export function constructTombstone(p: ParsedTombstone): string {
export function constructTombstone(p: ParsedTombstone): TombstoneIdStr {
switch (p.tag) {
case TombstoneTag.DeleteWithdrawalGroup:
return `tmb:${p.tag}:${p.withdrawalGroupId}`;
return `tmb:${p.tag}:${p.withdrawalGroupId}` as TombstoneIdStr;
case TombstoneTag.DeleteRefund:
return `tmb:${p.tag}:${p.refundGroupId}`;
return `tmb:${p.tag}:${p.refundGroupId}` as TombstoneIdStr;
}
}