Skip to content

Commit

Permalink
Update cat.ts
Browse files Browse the repository at this point in the history
Add generic type to BaseCtrl
  • Loading branch information
adwulfran authored Oct 9, 2024
1 parent 94c6917 commit edd2c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/cat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Cat from '../models/cat';
import Cat, { ICat } from '../models/cat';
import BaseCtrl from './base';

class CatCtrl extends BaseCtrl {
class CatCtrl extends BaseCtrl<ICat> {
model = Cat;
}

Expand Down

0 comments on commit edd2c79

Please sign in to comment.