feat: menambahkan akses slug ke beberapa fungsi yang belum terimplementasi
This commit is contained in:
@@ -194,6 +194,7 @@ class ProjectRepository {
|
||||
tasks: {
|
||||
select: {
|
||||
id: true,
|
||||
slug: true,
|
||||
title: true,
|
||||
description: true,
|
||||
deadline_at: true,
|
||||
@@ -268,6 +269,7 @@ class ProjectRepository {
|
||||
project: {
|
||||
select: {
|
||||
id: true,
|
||||
slug: true,
|
||||
project_name: true,
|
||||
project_icon: true,
|
||||
},
|
||||
|
||||
@@ -405,7 +405,9 @@ class ProjectService {
|
||||
const submission = task.submissions?.[0] || null;
|
||||
return {
|
||||
id: task.id,
|
||||
slug: task.slug,
|
||||
id_project: task.id_project,
|
||||
project_slug: task.project?.slug || null,
|
||||
project_name: task.project?.project_name || null,
|
||||
project_icon: task.project?.project_icon || null,
|
||||
title: task.title,
|
||||
|
||||
Reference in New Issue
Block a user