From 7a595af37eb8082f557dca186fc25abf8e988dce Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 21:44:32 -0400 Subject: [PATCH] My God, async is annoying. --- Project-Unite/App_Start/IdentityConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Unite/App_Start/IdentityConfig.cs b/Project-Unite/App_Start/IdentityConfig.cs index fcd3b2b..11f3b31 100644 --- a/Project-Unite/App_Start/IdentityConfig.cs +++ b/Project-Unite/App_Start/IdentityConfig.cs @@ -64,7 +64,7 @@ public async Task SendAsync(IdentityMessage message) db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, $@"Failed to send email: {ex}")); - db.SaveChanges(); + await db.SaveChangesAsync(); } return; }