feat(backend): Nieuwe repositories voor leerinhoud aan repositories.ts toevoegen.

This commit is contained in:
Gerald Schmittinger 2025-02-26 01:09:40 +01:00
parent 8ec201513c
commit 4e883a1a18
3 changed files with 64 additions and 4 deletions

View file

@ -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});
}