Update environment variable entity schema to update them individually (#53)

* Change environment field to enum instead of array

* Update gql client for get environment variables query

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
2024-02-01 11:37:57 +05:30
committed by Ashwin Phatak
co-authored by neeraj
parent 8ead083ab3
commit 2f8d21baf5
11 changed files with 69 additions and 56 deletions
+1 -9
View File
@@ -122,14 +122,6 @@ query {
email
}
}
environmentVariables {
id
environments
key
value
createdAt
updatedAt
}
createdAt
updatedAt
}
@@ -171,7 +163,7 @@ export const getEnvironmentVariables = gql`
query ($projectId: String!) {
environmentVariables(projectId: $projectId) {
createdAt
environments
environment
id
key
updatedAt
+1 -1
View File
@@ -30,7 +30,7 @@ export enum DomainStatus {
export type EnvironmentVariable = {
id: string
environments: Environment[]
environment: Environment
key: string
value: string
createdAt: string