feat(backend): Nieuwe repositories voor leerinhoud aan repositories.ts toevoegen.
This commit is contained in:
parent
8ec201513c
commit
4e883a1a18
3 changed files with 64 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
import {DwengoEntityRepository} from "../dwengo-entity-repository";
|
||||
import {User} from "../../entities/users/user.entity";
|
||||
|
||||
export class StudentRepository extends DwengoEntityRepository<User> {
|
||||
export class UserRepository extends DwengoEntityRepository<User> {
|
||||
public findByUsername(username: string): Promise<User | null> {
|
||||
return this.findOne({username: username});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue