From f9a43288a9e3a7435c7d90822fdbef4cb901c71d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 3 Jul 2019 12:11:40 -0400 Subject: [PATCH] collect events in bulk --- src/Events/Controllers/CollectController.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Events/Controllers/CollectController.cs b/src/Events/Controllers/CollectController.cs index 08874c19ee..205da6107c 100644 --- a/src/Events/Controllers/CollectController.cs +++ b/src/Events/Controllers/CollectController.cs @@ -30,20 +30,7 @@ namespace Bit.Events.Controllers } [HttpPost] - public async Task Post([FromBody]EventModel model) - { - if(await LogEventAsync(model)) - { - return new OkResult(); - } - else - { - return new BadRequestResult(); - } - } - - [HttpPost("many")] - public async Task PostMany([FromBody]IEnumerable model) + public async Task Post([FromBody]IEnumerable model) { if(model == null || !model.Any()) {