diff options
| author | Tom Harley | 2018-03-29 08:32:54 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-03-29 08:32:54 +0100 |
| commit | 8f39a1403d3c94f3d51693e41843750352408cba (patch) | |
| tree | 4833fd458e1d8590d798b8d1ede14bfb487aadea /src/db/model | |
| parent | Merge branch 'testing-middleware' into development (diff) | |
| download | medicine-8f39a1403d3c94f3d51693e41843750352408cba.tar.gz medicine-8f39a1403d3c94f3d51693e41843750352408cba.zip | |
Address numerous errors in test suites
Many errors still remian.
Diffstat (limited to 'src/db/model')
| -rw-r--r-- | src/db/model/Project.ts | 4 | ||||
| -rw-r--r-- | src/db/model/User.ts | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/db/model/Project.ts b/src/db/model/Project.ts index 3618f03..d57eaaa 100644 --- a/src/db/model/Project.ts +++ b/src/db/model/Project.ts @@ -107,9 +107,7 @@ export default class Project extends Model<Project> { return { project_name: this.name, users: this.contributors - .map<UserInfo>( - (u: User) => this.getUserInfo(u) - ), + .map((u: User): UserInfo => this.getUserInfo(u)), public_metadata: { creation_date: this.creationDate }, diff --git a/src/db/model/User.ts b/src/db/model/User.ts index 7315393..171e899 100644 --- a/src/db/model/User.ts +++ b/src/db/model/User.ts @@ -110,7 +110,6 @@ export default class User extends Model<User> { } public hasPrivilege(privilege: string): boolean { - // FIXME: Fetch these things if they aren't already present if (this.userGroups === undefined) { throw new Error('usergroups undefined'); } |
