2026-03-07 11:25:11 +03:30
|
|
|
import { PrismaService } from '@/prisma/prisma.service'
|
2026-02-12 20:31:04 +03:30
|
|
|
import { Injectable } from '@nestjs/common'
|
2026-03-07 11:25:11 +03:30
|
|
|
import { Public } from 'common/decorators/public.decorator'
|
|
|
|
|
import type { AccessTokenPayload } from 'common/models/token-model'
|
|
|
|
|
import { ResponseMapper } from 'common/response/response-mapper'
|
2026-02-12 20:31:04 +03:30
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
|
export class ProfileService {
|
|
|
|
|
constructor(private prisma: PrismaService) {}
|
|
|
|
|
|
|
|
|
|
@Public()
|
|
|
|
|
async findOne(account: AccessTokenPayload) {
|
|
|
|
|
return ResponseMapper.single(account)
|
|
|
|
|
}
|
|
|
|
|
}
|