Add switch deletion command

This commit is contained in:
Ske
2019-06-13 17:05:50 +02:00
parent 7e9b7dcc98
commit d109ca7b57
4 changed files with 47 additions and 6 deletions

View File

@@ -203,5 +203,10 @@ namespace PluralKit {
await _connection.ExecuteAsync("update switches set timestamp = @Time where id = @Id",
new {Time = time, Id = sw.Id});
}
public async Task DeleteSwitch(PKSwitch sw)
{
await _connection.ExecuteAsync("delete from switches where id = @Id", new {Id = sw.Id});
}
}
}