Skip to content

Commit

Permalink
fix: Fixed typing in resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreSoftwareDeveloper committed Jun 13, 2024
1 parent dc44990 commit 6d1fd2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion backend/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date
"""
scalar DateTime

type EditAdminMembersObj {
birthday: DateTime!
email: String!
first_name: String!
id: Int!
last_name: String!
name: String!
newsletter: Boolean!
}

type EditAdminSettingsObj {
site_copyright: [TextLanguage!]!
site_description: [TextLanguage!]!
Expand Down Expand Up @@ -150,7 +160,7 @@ type Mutation {
admin__core_languages__update(code: String!, file: Upload!): String!
admin__core_main_settings__edit(site_copyright: [TextLanguageInput!]!, site_description: [TextLanguageInput!]!, site_name: String!, site_short_name: String!): EditAdminSettingsObj!
admin__core_manifest_metadata__edit(background_color: String!, display: String!, start_url: String!, theme_color: String!): ShowAdminManifestMetadataObj!
admin__core_members__edit(birthday: DateTime!, email: String!, first_name: String!, id: Int!, last_name: String!, name: String!, newsletter: Boolean!): String!
admin__core_members__edit(birthday: DateTime!, email: String!, first_name: String!, id: Int!, last_name: String!, name: String!, newsletter: Boolean!): EditAdminMembersObj!
admin__core_nav__change_position(id: Int!, index_to_move: Int!, parent_id: Int!): String!
admin__core_nav__create(description: [TextLanguageInput!]!, external: Boolean!, href: String!, icon: String, name: [TextLanguageInput!]!): ShowCoreNav!
admin__core_nav__delete(id: Int!): String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EditAdminMembersObj } from "./dto/edit.obj";
export class EditAdminMembersResolver {
constructor(private readonly service: EditAdminMembersService) {}

@Mutation(() => String)
@Mutation(() => EditAdminMembersObj)
@UseGuards(AdminAuthGuards)
async admin__core_members__edit(
@Args() args: EditAdminMembersArgs
Expand Down

0 comments on commit 6d1fd2a

Please sign in to comment.