From 4a33e90bcf8b9d1e362c54c65f39182a7269c26f Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 12 Dec 2022 11:27:56 +0900 Subject: [PATCH] Rename Options to ProjectFields --- .../application/project/projectApplicationService.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/services/application/project/projectApplicationService.ts b/frontend/services/application/project/projectApplicationService.ts index 209f4f9b..3669b219 100644 --- a/frontend/services/application/project/projectApplicationService.ts +++ b/frontend/services/application/project/projectApplicationService.ts @@ -3,7 +3,7 @@ import { Project } from '~/domain/models/project/project' import { TagItem } from '~/domain/models/tag/tag' import { APIProjectRepository, SearchQuery } from '~/repositories/project/apiProjectRepository' -type Options = { +type ProjectFields = { name: string description: string guideline: string @@ -53,7 +53,7 @@ export class ProjectApplicationService { useRelation, tags, guideline = '' - }: Options): Promise { + }: ProjectFields): Promise { const project = Project.create( 0, name, @@ -88,7 +88,7 @@ export class ProjectApplicationService { enableGraphemeMode, useRelation, guideline = '' - }: Omit + }: Omit ): Promise { const project = Project.create( projectId, @@ -106,7 +106,6 @@ export class ProjectApplicationService { ) try { - // item.tags = [] // TODO: somewhat hacky await this.repository.update(project) } catch (e: any) { throw new Error(e.response.data.detail)