This commit is contained in:
1 parent
e85e4d74ea
commit
2e4ed76121
378 files changed
+22404
-20686
No files matched your search
@@ -35,9 +35,7 @@ export class TopupDeliveryError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
export async function claimTopupDelivery(
|
||||
claim: () => Promise<{ count: number }>,
|
||||
): Promise<void> {
|
||||
export async function claimTopupDelivery(claim: () => Promise<{ count: number }>): Promise<void> {
|
||||
const result = await claim();
|
||||
if (result.count !== 1) throw new TopupDeliveryError();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user