From e5edcacfae7853de2216a1702748fb819166ad05 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Mon, 18 Jul 2022 13:20:03 +0200
Subject: [PATCH] Reformat Query

---
 .../js/vue/components/alsijil/CourseBook.js   | 70 +++++++++----------
 1 file changed, 34 insertions(+), 36 deletions(-)

diff --git a/assets/js/vue/components/alsijil/CourseBook.js b/assets/js/vue/components/alsijil/CourseBook.js
index 18770f536..b1a6804ad 100644
--- a/assets/js/vue/components/alsijil/CourseBook.js
+++ b/assets/js/vue/components/alsijil/CourseBook.js
@@ -36,55 +36,53 @@ export default {
     <ApolloQuery
       :query="gql => gql\`
         query CourseBook($lessonId: ID!) {
-    excuseTypes {
-        name
-        shortName
-    }
-    lesson: lessonsById(id: $lessonId) {
-        groups {
+          excuseTypes {
             name
             shortName
-            members {
+          }
+          lesson: lessonsById(id: $lessonId) {
+            groups {
+              name
+              shortName
+              members {
                 id
                 fullName
+              }
             }
-        }
-        subject {
-            name
-        }
-    }
-    lessonDocumentations: lessonDocumentationsByLessonId(id: $lessonId) {
-        topic
-        homework
-        groupNote
-        period
-        date
-        personalNotes {
-            person {
+            subject {
+              name
+            }
+          }
+          lessonDocumentations: lessonDocumentationsByLessonId(id: $lessonId) {
+            topic
+            homework
+            groupNote
+            period
+            date
+            personalNotes {
+              person {
                 id
                 fullName
-            }
-            late
-            absent
-            excused
-            excuseType {
+              }
+              late
+              absent
+              excused
+              excuseType {
                 name
                 shortName
+              }
+              remarks
+                extraMarks {
+                  name
+                  shortName
+                }
+              }
             }
-            remarks
             extraMarks {
-                name
-                shortName
+              name
+              shortName
             }
         }
-    }
-
-    extraMarks {
-        name
-        shortName
-    }
-}
-
       \`"
       :variables="{ lessonId }"
     >
-- 
GitLab