Skip to content

Commit

Permalink
debug: delete log
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Feb 8, 2024
1 parent 244e644 commit 197c27a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export class AuthController {
}

const pageName = Object.keys(Page).find((key) => Page[key] == page);
console.log(Page[page]);
if (info[pageName] == undefined || info[pageName] == null)
throw new BadRequestException('invalid info');
switch (pageName) {
Expand Down Expand Up @@ -131,7 +130,6 @@ export class AuthController {
): Promise<SignupTokenResponseDto> {
const { id, page } = signupPayload;
if (Page[page] != 'phoneNumber') {
console.log(Page[page]);
throw new BadRequestException('invalid signup token');
}
await this.authService.validatePhoneNumber(body.phoneNumber, id);
Expand All @@ -147,8 +145,7 @@ export class AuthController {
@SignupUser() signupPayload: SignupPayload,
@Body() body: SignupImageRequestDto,
): Promise<SignupTokenResponseDto> {
const { id, page } = signupPayload;
console.log(Page[page]);
const { id } = signupPayload;
await this.userService.updateUserImages(id, body.images);
const signupToken = this.authService.getSignupToken(signupPayload);
return { signupToken };
Expand All @@ -163,7 +160,6 @@ export class AuthController {
): Promise<SignupTokenResponseDto> {
const { id, page } = signupPayload;
if (Page[page] != 'email') {
console.log(Page[page]);
throw new BadRequestException('invalid signup token');
}
await this.authService.sendVerificationCode(id, body.email);
Expand Down
1 change: 0 additions & 1 deletion src/geocoding/geocoding.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class GeocodingController {
description: '이름 형식 기반 LIKE 연산, 시군구 리스트 반환',
})
async getDistrictListByName(@Query('name') name: string) {
console.log(name);
return await this.geocodingService.searchDistrictByName(name);
}

Expand Down
3 changes: 0 additions & 3 deletions src/geocoding/geocoding.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class GeocodingService {
async searchDistrictByGeo(geo: string, page: number = 1) {
const rawdata = await this.queryVworldAPI(page, geo, undefined, true);
const data = await this.queryVworldAPI(page, geo);
console.log(data);

if (!rawdata.result) return [];
const name = data.result.featureCollection.features[0].properties.full_nm;
Expand Down Expand Up @@ -92,9 +91,7 @@ export class GeocodingService {

async getAdjGeoList(sigungu: string) {
try {
console.log(process.env.VWORLD_API_KEY);
const district = await this.searchOneDistrictByName(sigungu);
console.log(district);
if (district.status === 'NOT_FOUND') return [];

const geo = `POINT(${district.result.featureCollection.features[0].geometry.coordinates[0][0][0][0]} ${district.result.featureCollection.features[0].geometry.coordinates[0][0][0][1]})`;
Expand Down

0 comments on commit 197c27a

Please sign in to comment.