From d6b9f58ffe937a531cddc4c5f131df4ddb6c79fd Mon Sep 17 00:00:00 2001 From: Aotokitsuruya Date: Mon, 18 Dec 2023 21:28:50 +0800 Subject: [PATCH] Closed #53, deliver puzzle should verify attendee in the event --- api/command/deliverPuzzle.ts | 5 ++++ features/puzzle_delivery.feature | 36 ++++++++++++++++++++++------- worker/controller/puzzleDelivery.ts | 4 ++++ 3 files changed, 37 insertions(+), 8 deletions(-) diff --git a/api/command/deliverPuzzle.ts b/api/command/deliverPuzzle.ts index e38ffb2..b4eb4be 100644 --- a/api/command/deliverPuzzle.ts +++ b/api/command/deliverPuzzle.ts @@ -18,6 +18,7 @@ export type DeliverPuzzleOutput = { export class PuzzleReceiverNotFoundError extends Error {} export class PuzzleDelivererNotFoundError extends Error {} export class PuzzledAlreadyDeliveredError extends Error {} +export class PuzzleAttendeeNotInEventError extends Error {} export class PuzzleConfigNotFoundError extends Error {} export class PuzzleStatsNotFoundError extends Error {} @@ -53,6 +54,10 @@ export class DeliverPuzzleCommand implements Command