[#34] First step of not using Bio as Attribute
This commit is contained in:
@ -454,9 +454,9 @@ namespace Elwig.Helpers {
|
||||
if (input.Text.Length < 2 || !ctx.SortIdExists(input.Text[0..2]).GetAwaiter().GetResult()) {
|
||||
return new(false, "Ungültige Sorte");
|
||||
} else if (input.Text.Length >= 3) {
|
||||
var attr = input.Text[2..];
|
||||
if (!ctx.AttrIdExists(attr).GetAwaiter().GetResult()) {
|
||||
return new(false, "Ungültiges Attribut");
|
||||
var disc = input.Text[2..];
|
||||
if (!ctx.AttrIdExists(disc).GetAwaiter().GetResult() && !ctx.CultIdExists(disc).GetAwaiter().GetResult()) {
|
||||
return new(false, "Ungültiges Attribut/Bewirt.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user