From 02ec0b3df843567fda28e9b511708a0e1c347df1 Mon Sep 17 00:00:00 2001 From: Zoriot Date: Sat, 18 Jul 2026 22:10:15 +0200 Subject: [PATCH] feat(suggestion): add 'open' status to suggestion status cmd This is mainly needed because i false closed some suggestions and these doesn't have another status. It's also a helpful addition going forward. I have not seen a easy way to test it and the changes should be pretty safe. --- src/commands/suggestion.command.ts | 5 +++-- src/entities/Suggestion.entity.ts | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/suggestion.command.ts b/src/commands/suggestion.command.ts index c1998531..1539ce54 100644 --- a/src/commands/suggestion.command.ts +++ b/src/commands/suggestion.command.ts @@ -111,7 +111,8 @@ export default new Command({ "forwarded", "in-progress", "information", - "invalid" + "invalid", + "open" ] }, { @@ -459,7 +460,7 @@ export default new Command({ if (thread?.locked && !thread?.archived) await thread.setLocked(false) const CLOSE_STATUS = ["approved", "denied", "duplicate", "invalid"] - const OPEN_STATUS = ["forwarded", "in-progress", "information"] + const OPEN_STATUS = ["open", "forwarded", "in-progress", "information"] if ( // prettier-ignore thread && (( // thread must stay outside parentheses diff --git a/src/entities/Suggestion.entity.ts b/src/entities/Suggestion.entity.ts index 3af5053a..1cbbc1a4 100644 --- a/src/entities/Suggestion.entity.ts +++ b/src/entities/Suggestion.entity.ts @@ -21,7 +21,8 @@ export enum SuggestionStatuses { "forwarded", "in-progress", "information", - "invalid" + "invalid", + "open" } export interface Identifier {