Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
:(
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluzzi committed May 28, 2022
1 parent 36ba205 commit ea8cfe7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion resources/graphql/Schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Mutation {
createMember(
id: ID!
username: String!
profilPicture: String!
profilePicture: String!
isOnServer: Boolean
): Member

Expand Down
4 changes: 2 additions & 2 deletions resources/graphql/types/Member.gql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
type Member {
_id: String! # Discord ID
username: String!
profilPicture: String!
profilePicture: String!

birthday: Date

Expand Down Expand Up @@ -33,7 +33,7 @@ type ChannelMessageCount {

input MemberInput {
username: String
profilPicture: String
profilePicture: String

birthday: Date

Expand Down
6 changes: 3 additions & 3 deletions src/database/collections/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Member {
_id: string; // Discord ID

username: string;
profilPicture: string;
profilePicture: string;

birthday: Date | null;

Expand All @@ -36,15 +36,15 @@ export default memberCollection;
export async function createMember(
id: string,
username: string,
profilPicture: string,
profilePicture: string,
isOnServer = true
): Promise<Member | null> {
try {
const member = {
_id: id,

username: username,
profilPicture: profilPicture,
profilePicture: profilePicture,

birthday: null,

Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/ClientSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export type Member = {
activity: DiscordActivity;
birthday?: Maybe<Scalars['Date']>;
isOnServer: Scalars['Boolean'];
profilPicture: Scalars['String'];
profilePicture: Scalars['String'];
username: Scalars['String'];
};

export type MemberInput = {
birthday?: InputMaybe<Scalars['Date']>;
isOnServer?: InputMaybe<Scalars['Boolean']>;
profilPicture?: InputMaybe<Scalars['String']>;
profilePicture?: InputMaybe<Scalars['String']>;
username?: InputMaybe<Scalars['String']>;
};

Expand Down Expand Up @@ -99,7 +99,7 @@ export type MutationAddRoleArgs = {
export type MutationCreateMemberArgs = {
id: Scalars['ID'];
isOnServer?: InputMaybe<Scalars['Boolean']>;
profilPicture: Scalars['String'];
profilePicture: Scalars['String'];
username: Scalars['String'];
};

Expand Down
10 changes: 5 additions & 5 deletions src/interfaces/ServerSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export type Member = {
activity: DiscordActivity;
birthday?: Maybe<Scalars['Date']>;
isOnServer: Scalars['Boolean'];
profilPicture: Scalars['String'];
profilePicture: Scalars['String'];
username: Scalars['String'];
};

export type MemberInput = {
birthday?: InputMaybe<Scalars['Date']>;
isOnServer?: InputMaybe<Scalars['Boolean']>;
profilPicture?: InputMaybe<Scalars['String']>;
profilePicture?: InputMaybe<Scalars['String']>;
username?: InputMaybe<Scalars['String']>;
};

Expand Down Expand Up @@ -101,7 +101,7 @@ export type MutationAddRoleArgs = {
export type MutationCreateMemberArgs = {
id: Scalars['ID'];
isOnServer?: InputMaybe<Scalars['Boolean']>;
profilPicture: Scalars['String'];
profilePicture: Scalars['String'];
username: Scalars['String'];
};

Expand Down Expand Up @@ -334,7 +334,7 @@ export type MemberResolvers<ContextType = any, ParentType extends ResolversParen
activity?: Resolver<ResolversTypes['DiscordActivity'], ParentType, ContextType>;
birthday?: Resolver<Maybe<ResolversTypes['Date']>, ParentType, ContextType>;
isOnServer?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
profilPicture?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
profilePicture?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
username?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};
Expand All @@ -343,7 +343,7 @@ export type MutationResolvers<ContextType = any, ParentType extends ResolversPar
addChannel?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationAddChannelArgs, 'category' | 'channelId'>>;
addPresenceMessage?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationAddPresenceMessageArgs, 'text' | 'type'>>;
addRole?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationAddRoleArgs, 'category' | 'roleId'>>;
createMember?: Resolver<Maybe<ResolversTypes['Member']>, ParentType, ContextType, RequireFields<MutationCreateMemberArgs, 'id' | 'profilPicture' | 'username'>>;
createMember?: Resolver<Maybe<ResolversTypes['Member']>, ParentType, ContextType, RequireFields<MutationCreateMemberArgs, 'id' | 'profilePicture' | 'username'>>;
incMemberDiscordActivityChannel?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationIncMemberDiscordActivityChannelArgs, 'channelId' | 'id'>>;
incMemberDiscordVoiceMinute?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationIncMemberDiscordVoiceMinuteArgs, 'id'>>;
removeChannel?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRemoveChannelArgs, 'channelId'>>;
Expand Down
4 changes: 2 additions & 2 deletions src/resolvers/mutations/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import serverActivityCollection, {
} from "../../database/collections/ServerActivity";

const memberMutation: Resolvers["Mutation"] = {
createMember: async(_, { id, username, profilPicture, isOnServer }) => {
return await createMember(id, username, profilPicture, isOnServer ?? true);
createMember: async(_, { id, username, profilePicture, isOnServer }) => {
return await createMember(id, username, profilePicture, isOnServer ?? true);
},

updateMember: async(_, { id, input }) => {
Expand Down

0 comments on commit ea8cfe7

Please sign in to comment.