Properly invalidate account caches when unlinking

This commit is contained in:
Ske
2020-02-03 15:04:53 +01:00
parent de427d8bfe
commit 026932049a
2 changed files with 8 additions and 2 deletions

View File

@@ -509,6 +509,7 @@ namespace PluralKit {
_logger.Information("Unlinked system {System} from account {Account}", system.Id, accountId);
await _cache.InvalidateSystem(system);
_cache.InvalidateAccounts(new [] { accountId });
}
public async Task<PKSystem> GetSystemByAccount(ulong accountId) {