chore: contact us module

This commit is contained in:
Matin
2025-02-04 14:05:37 +03:30
parent c12e0fb4d4
commit 5e9561b417
7 changed files with 34 additions and 64 deletions
@@ -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,
},
},
});
}
}