chore: contact us module
This commit is contained in:
@@ -9,27 +9,4 @@ export class ContactUsRepository extends Repository<ContactUs> {
|
||||
constructor(@InjectRepository(ContactUs) contactUsRepository: Repository<ContactUs>) {
|
||||
super(contactUsRepository.target, contactUsRepository.manager, contactUsRepository.queryRunner);
|
||||
}
|
||||
|
||||
async getOneContactUs(id: string) {
|
||||
return await this.findOne({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
relations: ["user"],
|
||||
select: {
|
||||
id: true,
|
||||
numericId: true,
|
||||
title: true,
|
||||
content: true,
|
||||
isRead: true,
|
||||
createdAt: true,
|
||||
user: {
|
||||
id: true,
|
||||
email: true,
|
||||
firstName: true,
|
||||
lastName: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user