1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 05:39:32 +00:00

Lint cleanup with new rules

This commit is contained in:
2022-03-03 09:14:09 +00:00
parent 80291efc6d
commit c9e826d016
20 changed files with 104 additions and 57 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-empty-function */
'use strict';
const DatabaseConnectionPool = require('./DatabaseConnectionPool');
@@ -134,11 +135,11 @@ class Class {
})();
}
async getSubject() {
getSubject() {
return new (require('./Subject'))(this.subjectId);
}
async getUsers(ids, type) {
getUsers(ids, type) {
const types = {
account: 'Account',
student: 'Student'
@@ -212,4 +213,4 @@ class Class {
}
}
module.exports = Class;
module.exports = Class;