From bdd9206c92535dba8a68aeb1242dbae3485012d6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 30 Apr 2024 11:34:10 +0200 Subject: [PATCH] Delete env with API --- api/v1/environments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/environments.go b/api/v1/environments.go index c6f86f2..4a489e3 100644 --- a/api/v1/environments.go +++ b/api/v1/environments.go @@ -129,7 +129,7 @@ func (e *EnvironmentsServer) Delete(ctx context.Context, in *proto.DeleteOptions Data: data, Token: in.GetToken().GetToken(), } - err := environment.Create(ctx) + err := environment.Delete(ctx) if err != nil { return nil, err }