mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 20:59:30 +00:00
Remove dangling commas
This commit is contained in:
2
app.js
2
app.js
@@ -76,7 +76,7 @@ async function main() {
|
||||
allowProtoPropertiesByDefault: true,
|
||||
allowProtoMethodsByDefault: true
|
||||
}
|
||||
}),
|
||||
})
|
||||
);
|
||||
app.set('view engine', 'hbs');
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
|
||||
@@ -88,7 +88,7 @@ class Class {
|
||||
const [
|
||||
teachers,
|
||||
students,
|
||||
subject,
|
||||
subject
|
||||
] = await Promise.all([
|
||||
this.getTeachers(),
|
||||
this.getStudents(),
|
||||
|
||||
@@ -185,7 +185,7 @@ class EmailBuilder {
|
||||
cc: `${this.#cc.join(',')}`,
|
||||
bcc: `${this.#bcc.join(',')}`,
|
||||
subject: this.#subject,
|
||||
text: this.#body,
|
||||
text: this.#body
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,7 @@ class Subject {
|
||||
|
||||
return (async () => {
|
||||
const record = await this.#conn.runQuery(sql, [
|
||||
subjectId,
|
||||
subjectId
|
||||
]);
|
||||
|
||||
if (!record.length)
|
||||
|
||||
@@ -83,7 +83,7 @@ class Test {
|
||||
|
||||
return (async () => {
|
||||
const record = await this.#conn.runQuery(sql, [
|
||||
testId,
|
||||
testId
|
||||
]);
|
||||
|
||||
if (!record.length)
|
||||
|
||||
@@ -67,7 +67,7 @@ class TestTemplate {
|
||||
|
||||
return (async () => {
|
||||
const record = await this.#conn.runQuery(sql, [
|
||||
testTemplateId,
|
||||
testTemplateId
|
||||
]);
|
||||
|
||||
if (!record.length)
|
||||
|
||||
@@ -125,7 +125,7 @@ describe('validate', () => {
|
||||
};
|
||||
|
||||
const fields = [
|
||||
'name',
|
||||
'name'
|
||||
];
|
||||
|
||||
const result = validator.validate(body, fields);
|
||||
|
||||
@@ -66,7 +66,7 @@ router.post('/login', async (req, res) => {
|
||||
'password'
|
||||
],
|
||||
{
|
||||
email: 'email',
|
||||
email: 'email'
|
||||
}
|
||||
).fields;
|
||||
} catch (e) {
|
||||
|
||||
@@ -52,7 +52,7 @@ router.get('/:id', async (req, res) => {
|
||||
{
|
||||
value: '50%',
|
||||
text: 'Last percentage'
|
||||
},
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
@@ -134,7 +134,7 @@ router.post('/:id/:userType(members|teachers)/add', async (req, res) => {
|
||||
try {
|
||||
fields = validator.validate(req.body,
|
||||
[
|
||||
'email',
|
||||
'email'
|
||||
], {
|
||||
email: 'email'
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ router.get('/:id', async (req, res) => {
|
||||
{
|
||||
value: '3',
|
||||
text: 'Placeholder'
|
||||
},
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
@@ -86,7 +86,7 @@ router.post('/:id/results/:resultId/edit', async (req, res) => {
|
||||
try {
|
||||
fields = validator.validate(req.body,
|
||||
[
|
||||
'mark',
|
||||
'mark'
|
||||
]
|
||||
).fields;
|
||||
} catch (e) {
|
||||
|
||||
@@ -77,7 +77,7 @@ const data = {
|
||||
otherNames: null,
|
||||
lastName: 'Tanz',
|
||||
password: 'p5'
|
||||
},
|
||||
}
|
||||
],
|
||||
student: [
|
||||
{
|
||||
@@ -114,7 +114,7 @@ const data = {
|
||||
otherNames: 'Killian James',
|
||||
lastName: 'O\'Mulrian',
|
||||
password: 's5'
|
||||
},
|
||||
}
|
||||
|
||||
],
|
||||
subject: [
|
||||
@@ -135,7 +135,7 @@ const data = {
|
||||
},
|
||||
{
|
||||
name: 'Electronics'
|
||||
},
|
||||
}
|
||||
],
|
||||
class: [
|
||||
{
|
||||
@@ -153,7 +153,7 @@ const data = {
|
||||
{
|
||||
name: '13(6)',
|
||||
subjectId: 4
|
||||
},
|
||||
}
|
||||
|
||||
],
|
||||
account: [
|
||||
@@ -184,7 +184,7 @@ const data = {
|
||||
otherNames: null,
|
||||
lastName: 'Doe',
|
||||
password: 'a4'
|
||||
},
|
||||
}
|
||||
],
|
||||
testTemplate: [
|
||||
{
|
||||
@@ -300,7 +300,7 @@ const data = {
|
||||
classId: 3,
|
||||
testTemplateId: 4
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
studentParentLink: [
|
||||
{
|
||||
@@ -418,51 +418,51 @@ const data = {
|
||||
studentId: 5,
|
||||
classId: 4
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
accountClassLink: [
|
||||
{
|
||||
lookups: {
|
||||
accountId: 1,
|
||||
classId: 1,
|
||||
classId: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 1,
|
||||
classId: 2,
|
||||
classId: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 2,
|
||||
classId: 2,
|
||||
classId: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 3,
|
||||
classId: 3,
|
||||
classId: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 1,
|
||||
classId: 4,
|
||||
classId: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 2,
|
||||
classId: 4,
|
||||
classId: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
lookups: {
|
||||
accountId: 3,
|
||||
classId: 4,
|
||||
classId: 4
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
testResult: [
|
||||
{
|
||||
@@ -554,7 +554,7 @@ const data = {
|
||||
testId: 8,
|
||||
accountId: 3
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user