From 089514509763a67aa64d80fe310cd8560c9f74a3 Mon Sep 17 00:00:00 2001 From: do4gr Date: Tue, 27 Mar 2018 17:43:58 +0200 Subject: [PATCH] fix broken build --- .../deploy/schema/mutations/DeleteProjectMutation.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/servers/deploy/src/main/scala/com/prisma/deploy/schema/mutations/DeleteProjectMutation.scala b/server/servers/deploy/src/main/scala/com/prisma/deploy/schema/mutations/DeleteProjectMutation.scala index 913969602f..1852a080ce 100644 --- a/server/servers/deploy/src/main/scala/com/prisma/deploy/schema/mutations/DeleteProjectMutation.scala +++ b/server/servers/deploy/src/main/scala/com/prisma/deploy/schema/mutations/DeleteProjectMutation.scala @@ -1,7 +1,7 @@ package com.prisma.deploy.schema.mutations import com.prisma.deploy.connector.{DeployConnector, ProjectPersistence} -import com.prisma.deploy.schema.InvalidServiceName +import com.prisma.deploy.schema.InvalidProjectId import com.prisma.messagebus.PubSubPublisher import com.prisma.messagebus.pubsub.Only import com.prisma.shared.models._ @@ -17,10 +17,9 @@ case class DeleteProjectMutation( implicit ec: ExecutionContext ) extends Mutation[DeleteProjectMutationPayload] { - override def execute: Future[MutationResult[DeleteProjectMutationPayload]] = { - - val projectId = ProjectId.toEncodedString(name = args.name, stage = args.stage) + val projectId = ProjectId.toEncodedString(name = args.name, stage = args.stage) + override def execute: Future[MutationResult[DeleteProjectMutationPayload]] = { for { projectOpt <- projectPersistence.load(projectId) project = validate(projectOpt)