role perms
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { EntityRepository } from '@mikro-orm/postgresql';
|
||||
import type { Restaurant } from '../entities/restaurant.entity';
|
||||
import { EntityManager, EntityRepository } from '@mikro-orm/postgresql';
|
||||
import { Restaurant } from '../entities/restaurant.entity';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
// import { PaginationUtils } from '../../utils/services/pagination.utils';
|
||||
|
||||
export class RestRepository extends EntityRepository<Restaurant> {}
|
||||
@Injectable()
|
||||
export class RestRepository extends EntityRepository<Restaurant> {
|
||||
constructor(readonly em: EntityManager) {
|
||||
super(em, Restaurant);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user