Dispose of it properly in an async context

This commit is contained in:
2021-12-31 00:00:25 -08:00
parent 22ccbfc34b
commit a64bd39266

View File

@@ -31,9 +31,11 @@ namespace TwilioSMSReceiver.Common.MessageHandlers
message.IsForwardedYet = true;
sMSDbCtx.SMSMessages.Update(message);
await sMSDbCtx.SaveChangesAsync();
await sMSDbCtx.DisposeAsync();
return true;
}
}
await sMSDbCtx.DisposeAsync();
return false;
}
}