otp in database
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { EntityManager, EntityRepository } from '@mikro-orm/postgresql';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Otp } from '../entities/otp.entity';
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class OtpRepository extends EntityRepository<Otp> {
|
||||
constructor(
|
||||
readonly em: EntityManager,
|
||||
) {
|
||||
super(em, Otp);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user