Skip to content

Commit 7383e7b

Browse files
Dinesh SalunkeDinesh Salunke
authored andcommitted
refactor: rename BoardType to TemplateType
1 parent a7aabc5 commit 7383e7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

services/convert/project.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import (
1212

1313
func ToAPIProject(ctx context.Context, project *project_model.Project) (*api.Project, error) {
1414
apiProject := &api.Project{
15-
Title: project.Title,
16-
Description: project.Description,
17-
BoardType: uint8(project.BoardType),
18-
IsClosed: project.IsClosed,
19-
Created: project.CreatedUnix.AsTime(),
20-
Updated: project.UpdatedUnix.AsTime(),
21-
Closed: project.ClosedDateUnix.AsTime(),
15+
Title: project.Title,
16+
Description: project.Description,
17+
TemplateType: uint8(project.TemplateType),
18+
IsClosed: project.IsClosed,
19+
Created: project.CreatedUnix.AsTime(),
20+
Updated: project.UpdatedUnix.AsTime(),
21+
Closed: project.ClosedDateUnix.AsTime(),
2222
}
2323

2424
_ = project.LoadRepo(ctx)

0 commit comments

Comments
 (0)