added isActive condition
This commit is contained in:
@@ -278,7 +278,7 @@ export class FilteredLandingPageService {
|
||||
) {
|
||||
const data = await this.prisma.$transaction(async (tx) => {
|
||||
const userAddressDetails = await tx.userAddressDetails.findFirst({
|
||||
where: { userXid: userId },
|
||||
where: { userXid: userId, isActive: true },
|
||||
select: {
|
||||
id: true,
|
||||
address1: true,
|
||||
|
||||
Reference in New Issue
Block a user