b34ed5c4c0
- add PatchObject.CheckIsValid - use transaction when creating member, as to not create a member if the patch is invalid - return edited system in `PATCH /s` endpoint
17 lines
344 B
C#
17 lines
344 B
C#
using System;
|
|
|
|
namespace PluralKit.Core
|
|
{
|
|
|
|
public class InvalidPatchException : Exception
|
|
{
|
|
public InvalidPatchException(string message) : base(message) {}
|
|
}
|
|
|
|
public abstract class PatchObject
|
|
{
|
|
public abstract UpdateQueryBuilder Apply(UpdateQueryBuilder b);
|
|
|
|
public void CheckIsValid() {}
|
|
}
|
|
} |