From 3d4a9d898cd82dd7a9113dd9c7d6971b6c6045d2 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Thu, 2 Jan 2025 21:42:28 +0530 Subject: [PATCH] fix: error on fetching projects Signed-off-by: Ayush Sharma --- pkg/apis/project.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/apis/project.go b/pkg/apis/project.go index de1f838..f4ab01e 100644 --- a/pkg/apis/project.go +++ b/pkg/apis/project.go @@ -82,7 +82,8 @@ func CreateProjectRequest(projectName string, cred types.Credentials) (CreatePro } type listProjectResponse struct { - Data struct { + Message string `json:"message"` + Data struct { Projects []struct { ID string `json:"projectID"` // Adjusted field name Name string `json:"name"`