From a2128da2a1f3aa52cb97e00bd8e5c65444d2217b Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 28 Aug 2020 11:41:41 +0200 Subject: [PATCH] Fix some ordering --- PluralKit.Core/Models/Patch/ModelPatchExt.cs | 2 +- PluralKit.Core/Services/PostgresDataStore.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.Core/Models/Patch/ModelPatchExt.cs b/PluralKit.Core/Models/Patch/ModelPatchExt.cs index 64661a33..105c47c1 100644 --- a/PluralKit.Core/Models/Patch/ModelPatchExt.cs +++ b/PluralKit.Core/Models/Patch/ModelPatchExt.cs @@ -31,7 +31,7 @@ namespace PluralKit.Core "insert into members (hid, system, name) values (find_free_member_hid(), @SystemId, @Name) returning *", new {SystemId = system, Name = memberName}); Log.ForContext("Elastic", "yes?").Information("Created {MemberId} in {SystemId}: {MemberName}", - system, member.Id, memberName); + member.Id, system, memberName); return member; } diff --git a/PluralKit.Core/Services/PostgresDataStore.cs b/PluralKit.Core/Services/PostgresDataStore.cs index 3e364be8..1281addf 100644 --- a/PluralKit.Core/Services/PostgresDataStore.cs +++ b/PluralKit.Core/Services/PostgresDataStore.cs @@ -37,14 +37,14 @@ namespace PluralKit.Core { using (var conn = await _conn.Obtain()) await conn.ExecuteAsync("insert into accounts (uid, system) values (@Id, @SystemId) on conflict do nothing", new { Id = accountId, SystemId = system.Id }); - _logger.Information("Linked account {UserId} to {SystemId}", system.Id, accountId); + _logger.Information("Linked account {UserId} to {SystemId}", accountId, system.Id); } public async Task RemoveAccount(PKSystem system, ulong accountId) { using (var conn = await _conn.Obtain()) await conn.ExecuteAsync("delete from accounts where uid = @Id and system = @SystemId", new { Id = accountId, SystemId = system.Id }); - _logger.Information("Unlinked account {UserId} from {SystemId}", system.Id, accountId); + _logger.Information("Unlinked account {UserId} from {SystemId}", accountId, system.Id); } public async Task GetSystemByAccount(ulong accountId) {