public async Task EnqueueUpdateAsync(EmailBlastUpdate update) { var col = _database.GetCollection <EmailBlastUpdate>("queue"); await col.InsertOneAsync(update); }
public async Task ChangeProcessed(EmailBlastUpdate update) { var col = _database.GetCollection <EmailBlastUpdate>("queue"); await col.DeleteOneAsync(x => x.Id == update.Id); }