fix: typo causes crash when creating a system
This commit is contained in:
parent
9dbc120bbc
commit
af626c3581
@ -80,7 +80,7 @@ public partial class ModelRepository
|
|||||||
var system = await _db.QueryFirst<PKSystem>(conn, query, "returning *");
|
var system = await _db.QueryFirst<PKSystem>(conn, query, "returning *");
|
||||||
_logger.Information("Created {SystemId}", system.Id);
|
_logger.Information("Created {SystemId}", system.Id);
|
||||||
|
|
||||||
await _db.Execute(conn => conn.QueryAsync("insert into config (system) value (@system)", new { system = system.Id }));
|
await _db.Execute(conn => conn.QueryAsync("insert into config (system) values (@system)", new { system = system.Id }));
|
||||||
|
|
||||||
// no dispatch call here - system was just created, we don't have a webhook URL
|
// no dispatch call here - system was just created, we don't have a webhook URL
|
||||||
return system;
|
return system;
|
||||||
|
Loading…
Reference in New Issue
Block a user