From 359572f4b2d8713edd38c009acb04d87e600984f Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:05:22 +0530 Subject: [PATCH] Remove keyValidation from diff --- server/pkg/controller/authenticator/controller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/pkg/controller/authenticator/controller.go b/server/pkg/controller/authenticator/controller.go index f42d2deafd..10b59210cc 100644 --- a/server/pkg/controller/authenticator/controller.go +++ b/server/pkg/controller/authenticator/controller.go @@ -82,9 +82,6 @@ func (c *Controller) Delete(ctx *gin.Context, entityID uuid.UUID) (bool, error) // GetDiff... func (c *Controller) GetDiff(ctx *gin.Context, req model.GetEntityDiffRequest) ([]model.Entity, error) { - if err := c.validateKey(ctx); err != nil { - return nil, stacktrace.Propagate(err, "failed to validateKey") - } userID := auth.GetUserID(ctx.Request.Header) return c.Repo.GetDiff(ctx, userID, *req.SinceTime, req.Limit) }