Model: fix getById
This commit is contained in:
parent
5ca1ddef43
commit
51addd947b
@ -33,7 +33,7 @@ export default abstract class Model {
|
||||
}
|
||||
|
||||
public static async getById<T extends Model>(this: Type<T>, ...id: any): Promise<T | null> {
|
||||
return ModelFactory.get(this).getById(id);
|
||||
return ModelFactory.get(this).getById(...id);
|
||||
}
|
||||
|
||||
public static async paginate<T extends Model>(this: Type<T>, request: Request, perPage: number = 20, query?: ModelQuery<T>): Promise<ModelQueryResult<T>> {
|
||||
|
Loading…
Reference in New Issue
Block a user