Skip to content

Commit

Permalink
fix(be): update chapter api
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Jul 27, 2023
1 parent e388214 commit efc44d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chapter/chapter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ export class ChapterService {
return this.graphqlSvc.query(
this.configService.get<string>('graphql.endpoint'),
token,
`mutation UpdateChapterLanguague ($chapter_id: Int!, $language_id: Int!, $detail: jsonb! = "") {
update_chapter_languages(where: {_and:{chapter_id:{_eq:$chapter_id},language_id:{_eq:$language_id}}}, _set: {detail:$detail}) {
`mutation UpdateChapterLanguague($chapter_id: Int!, $language_id: Int!, $detail: jsonb! = "", $chapter_id1: Int = 10, $language_id1: Int = 10, $detail1: jsonb = "") {
insert_chapter_languages(objects: {chapter_id: $chapter_id, language_id: $language_id, detail: $detail}, on_conflict: {constraint: chapter_images_pkey, update_columns: detail}) {
affected_rows
}
}`,
Expand Down

0 comments on commit efc44d9

Please sign in to comment.