Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/common/chat-gpt/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class ChatGPT implements IChatGPTPagePort {
},
],
});
console.log(promptGPT.choices[0].message.content);

if (promptGPT.choices[0].message.content === 'error') {
return '';
}
Expand All @@ -107,7 +107,7 @@ export class ChatGPT implements IChatGPTPagePort {
n: 1,
size: '1024x1024',
});
console.log(imageResponse.data[0].url);

const response = await axios.get(imageResponse.data[0].url ?? '', {
responseType: 'stream',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export class ChoiceRepository implements IChoiceRepository {

return toDomain(createdFromPage);
} catch (err) {
console.log(err);
throw new BadRequestException(`선택지 생성 실패`);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class UpdatePageReqDto {

@IsBoolean()
@Transform(({ value }) => {
console.log(value);
return JSON.parse(value) == true;
})
isEnding: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class PageController {
@Param('gameId', ParseIntPipe) gameId: number,
@Body() body: CreatePageReqDto,
): Promise<CreatePageResDto> {
return await this.createPageUsecase.create(gameId, body);
return await this.createPageUsecase.create(gameId);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class CreatePageUsecase {
@Inject('IPageService') private readonly pageService: IPageService,
) {}

public async create(gameId: number, body: CreatePageReqDto) {
public async create(gameId: number) {
const pages = await this.pageService.getAllByGameId(gameId);
const isStarting = pages.length === 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GetPageUseCase {
}

const choices = await this.choiceService.getAllByFromPageId(pageId);
console.log(getImagePathOrNull(page.backgroundImage?.url ?? undefined));

return {
id: page.id,
gameId: page.gameId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export class CreatePageDomainEntity {
public createdAt: Date;
public updatedAt: Date;
public contents: [];
public title: string = '';
public title: string = '새 페이지';
public isEnding: boolean = false;
constructor(
public gameId: number,
Expand Down
Loading