bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Entity, OneToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { Entity, ManyToOne, OneToOne, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { normalizePhone } from '../../util/phone.util';
|
||||
import { Role } from 'src/modules/roles/entities/role.entity';
|
||||
@@ -27,6 +27,6 @@ export class Admin extends BaseEntity {
|
||||
this._phone = normalizePhone(value);
|
||||
}
|
||||
|
||||
@OneToOne(() => Role)
|
||||
@ManyToOne(() => Role)
|
||||
role: Role
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user