fix(server): rename config -> env

This commit is contained in:
Lakhan Samani
2022-01-17 13:12:46 +05:30
parent e07448f670
commit c15b65b473
11 changed files with 331 additions and 323 deletions

View File

@@ -62,7 +62,7 @@ type Response {
message: String!
}
type Config {
type Env {
ADMIN_SECRET: String
DATABASE_TYPE: String
DATABASE_URL: String
@@ -98,8 +98,9 @@ type Config {
ORGANIZATION_LOGO: String
}
input UpdateConfigInput {
input UpdateEnvInput {
ADMIN_SECRET: String
CONFIRM_ADMIN_SECRET: String
DATABASE_TYPE: String
DATABASE_URL: String
DATABASE_NAME: String
@@ -236,7 +237,7 @@ type Mutation {
_admin_signup(params: AdminSignupInput!): Response!
_admin_login(params: AdminLoginInput!): Response!
_admin_logout: Response!
_update_config(params: UpdateConfigInput!): Response!
_update_env(params: UpdateEnvInput!): Response!
}
type Query {
@@ -247,5 +248,5 @@ type Query {
_users: [User!]!
_verification_requests: [VerificationRequest!]!
_admin_session: Response!
_config: Config!
_env: Env!
}