From 32bf1a7f0253de4586aec495e395a6008b4f3d73 Mon Sep 17 00:00:00 2001 From: Ramin Date: Wed, 21 May 2025 20:55:18 +0330 Subject: [PATCH] add isAnonymoys to action --- src/user/user.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/user/user.service.ts b/src/user/user.service.ts index dc03a67..1e2e5af 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -1,5 +1,6 @@ import { forwardRef, Inject, Injectable } from '@nestjs/common'; import { ActionType, PollStatus, Prisma } from '@prisma/client'; +import { GetCountDto } from '../common/common.dto'; import { VOTING_POWER } from '../common/constants'; import { CreateUserException, @@ -28,7 +29,6 @@ import { UserDataResponseDto, UserVotesResponseDto, } from './user.dto'; -import { GetCountDto } from '../common/common.dto'; @Injectable() export class UserService { @@ -214,6 +214,7 @@ export class UserService { type: action.type, pollId: action.poll.pollId, pollTitle: action.poll.title || '', + isAnonymous: action.poll.isAnonymous, pollDescription: action.poll.description ?? '', endDate: action.poll.endDate ? action.poll.endDate.toISOString() : '', isActive: action.poll.endDate ? action.poll.endDate >= now : false,