Skip to content

Commit

Permalink
made the requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AVtheking committed Jan 8, 2024
1 parent 1e707ed commit 1507ee5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -939,8 +939,8 @@ input UpdateOrganizationInput {
description: String
location: String
name: String
userRegistrationRequired: Boolean!
visibleInSearch: Boolean!
userRegistrationRequired: Boolean
visibleInSearch: Boolean
}

input UpdateTaskInput {
Expand Down
3 changes: 2 additions & 1 deletion src/models/Organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface InterfaceOrganization {
customFields: PopulatedDoc<InterfaceOrganizationCustomField & Document>[];
createdAt: Date;
userRegistrationRequired: boolean;
visibleInSearch: boolean | undefined;
visibleInSearch: boolean;
}
/**
* This describes the schema for a `Organization` that corresponds to `InterfaceOrganization` document.
Expand Down Expand Up @@ -71,6 +71,7 @@ const organizationSchema = new Schema({
},
visibleInSearch: {
type: Boolean,
default: true,
},
creator: {
type: Schema.Types.ObjectId,
Expand Down
4 changes: 2 additions & 2 deletions src/typeDefs/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ export const inputs = gql`
name: String
description: String
location: String
userRegistrationRequired: Boolean!
visibleInSearch: Boolean!
userRegistrationRequired: Boolean
visibleInSearch: Boolean
}
input UpdateUserTagInput {
Expand Down
4 changes: 2 additions & 2 deletions src/types/generatedGraphQLTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,8 @@ export type UpdateOrganizationInput = {
description?: InputMaybe<Scalars['String']>;
location?: InputMaybe<Scalars['String']>;
name?: InputMaybe<Scalars['String']>;
userRegistrationRequired: Scalars['Boolean'];
visibleInSearch: Scalars['Boolean'];
userRegistrationRequired?: InputMaybe<Scalars['Boolean']>;
visibleInSearch?: InputMaybe<Scalars['Boolean']>;
};

export type UpdateTaskInput = {
Expand Down

0 comments on commit 1507ee5

Please sign in to comment.