mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 16:19:26 +00:00
Remove dangling commas
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user