refactor: 移除查询日志地区解析
This commit is contained in:
@@ -4,7 +4,6 @@ import { Prisma } from '@prisma/client';
|
||||
import { ArtworkStatus, AuditStatus, QueryResult, ProofStatus, TraceCodeStatus } from '@artveris/shared';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { StorageService } from '../storage/storage.service';
|
||||
import { GeoService } from '../geo/geo.service';
|
||||
import { REDIS_CLIENT } from '../redis/redis.module';
|
||||
import { parseUserAgent } from '../common/utils/ua.util';
|
||||
|
||||
@@ -24,7 +23,6 @@ export class PublicTraceService {
|
||||
constructor(
|
||||
private readonly prisma: PrismaService,
|
||||
private readonly storage: StorageService,
|
||||
private readonly geo: GeoService,
|
||||
@Inject(REDIS_CLIENT) private readonly redis: Redis,
|
||||
) {}
|
||||
|
||||
@@ -209,7 +207,6 @@ export class PublicTraceService {
|
||||
firstActivatedAt: code?.firstActivatedAt ?? undefined,
|
||||
queryResult: result,
|
||||
ip: ctx.ip,
|
||||
region: this.geo.resolveRegion(ctx.ip),
|
||||
userAgent: ctx.userAgent,
|
||||
deviceType: device.deviceType,
|
||||
browser: device.browser,
|
||||
|
||||
Reference in New Issue
Block a user