wip league admin tools
This commit is contained in:
@@ -84,15 +84,13 @@ export class ProtestService {
|
||||
* Review protest
|
||||
*/
|
||||
async reviewProtest(input: { protestId: string; stewardId: string; decision: string; decisionNotes: string }): Promise<void> {
|
||||
const normalizedDecision = input.decision.toLowerCase();
|
||||
const enumValue: ReviewProtestCommandDTO['enum'] =
|
||||
normalizedDecision === 'uphold' || normalizedDecision === 'upheld' ? 'uphold' : 'dismiss';
|
||||
const normalizedDecision =
|
||||
input.decision.toLowerCase() === 'upheld' ? 'uphold' : input.decision.toLowerCase();
|
||||
|
||||
const command: ReviewProtestCommandDTO = {
|
||||
protestId: input.protestId,
|
||||
stewardId: input.stewardId,
|
||||
enum: enumValue,
|
||||
decision: input.decision,
|
||||
decision: normalizedDecision,
|
||||
decisionNotes: input.decisionNotes,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user