Refactor import path for verifyMinglarAdminHostToken and update selection fields in getAllPQQQuesAndSubmittedAns method
This commit is contained in:
@@ -3,7 +3,7 @@ import { PrismaService } from '../../../../../common/database/prisma.service';
|
||||
import { safeHandler } from '../../../../../common/utils/handlers/safeHandler';
|
||||
import ApiError from '../../../../../common/utils/helper/ApiError';
|
||||
import { HostService } from '../../../services/host.service';
|
||||
import { verifyMinglarAdminHostToken } from '@/common/middlewares/jwt/authForMinglarAdminHost';
|
||||
import { verifyMinglarAdminHostToken } from '../../../../../common/middlewares/jwt/authForMinglarAdminHost';
|
||||
|
||||
const prismaService = new PrismaService();
|
||||
const hostService = new HostService(prismaService);
|
||||
|
||||
@@ -1389,7 +1389,12 @@ export class HostService {
|
||||
async getAllPQQQuesAndSubmittedAns(activity_xid: number) {
|
||||
return await this.prisma.activityPQQheader.findMany({
|
||||
where: { isActive: true, activityXid: activity_xid },
|
||||
include: {
|
||||
select: {
|
||||
id: true,
|
||||
activityXid: true,
|
||||
pqqQuestionXid: true,
|
||||
pqqAnswerXid: true,
|
||||
comments: true,
|
||||
pqqQuestions: {
|
||||
select: {
|
||||
questionName: true,
|
||||
|
||||
Reference in New Issue
Block a user