Migrate guild objects to the patch system

This commit is contained in:
Ske
2020-06-29 15:20:28 +02:00
parent 467ce78522
commit 0598c53f62
11 changed files with 124 additions and 62 deletions

View File

@@ -50,7 +50,7 @@ namespace PluralKit.Core
else _updateFragment.Append(", ");
_updateFragment.Append(fieldName);
_updateFragment.Append("=");
_updateFragment.Append(" = ");
_updateFragment.Append(paramName);
return this;
}
@@ -71,7 +71,7 @@ namespace PluralKit.Core
if (Type == QueryType.Update && _condition != null)
query.Append($" where {_condition}");
if (suffix != null)
if (!string.IsNullOrEmpty(suffix))
query.Append($" {suffix}");
query.Append(";");