Merge branch 'paritosh' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into paritosh
This commit is contained in:
@@ -24,8 +24,7 @@ export const MINGLAR_INVITATION_STATUS = {
|
||||
}
|
||||
|
||||
export const HOST_SUGGESTION_TITLES = {
|
||||
SETUP_PROFILE: "Setup Profile",
|
||||
REVIEW_ACCOUNT: "Review Account",
|
||||
ADD_PAYMENT_DETAILS: "Add Payment Details",
|
||||
AGREEMENT: "Agreement"
|
||||
COMPANY_DETAILS: "Complete Details",
|
||||
COMPANY_DOCUMENTATION:"Company documentataion",
|
||||
COMPANY_SOCIAL_PROOF:"Social Proof",
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
|
||||
import { safeHandler } from '../../../common/utils/handlers/safeHandler';
|
||||
import { PrismaService } from '../../../common/database/prisma.service';
|
||||
import { MinglarService } from '../services/minglar.service';
|
||||
import { MinglarService } from '../../minglaradmin/services/minglar.service';
|
||||
import ApiError from '../../../common/utils/helper/ApiError';
|
||||
import { verifyMinglarAdminToken } from '../../../common/middlewares/jwt/authForMinglarAdmin';
|
||||
import { verifyHostToken } from '@/common/middlewares/jwt/authForHost';
|
||||
|
||||
const prismaService = new PrismaService();
|
||||
const minglarService = new MinglarService(prismaService);
|
||||
@@ -23,7 +23,7 @@ export const handler = safeHandler(async (
|
||||
}
|
||||
|
||||
// Verify token and get user info
|
||||
const userInfo = await verifyMinglarAdminToken(token);
|
||||
const userInfo = await verifyHostToken(token);
|
||||
|
||||
// Get user details including role
|
||||
const user = await prismaService.user.findUnique({
|
||||
Reference in New Issue
Block a user