Skip to content

Commit

Permalink
fix: flag template cannot be update
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Oct 2, 2022
1 parent 41f1c98 commit 9466278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GZCTF/Models/Data/Challenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ internal Challenge Update(ChallengeUpdateModel model)
Tag = model.Tag ?? Tag;
Hints = model.Hints ?? Hints;
IsEnabled = model.IsEnabled ?? IsEnabled;
FlagTemplate = string.IsNullOrWhiteSpace(model.FlagTemplate) ? null : FlagTemplate;
FlagTemplate = string.IsNullOrWhiteSpace(model.FlagTemplate) ? null : model.FlagTemplate;
CPUCount = model.CPUCount ?? CPUCount;
MemoryLimit = model.MemoryLimit ?? MemoryLimit;
StorageLimit = model.StorageLimit ?? StorageLimit;
Expand Down

0 comments on commit 9466278

Please sign in to comment.