Skip to content

Commit 31fa40f

Browse files
committed
chore: remove console
1 parent b58059a commit 31fa40f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/server/src/services/PostApiService/index.mts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export class PostApiService implements Service {
8181
},
8282
})
8383

84+
// 처음 시리즈를 등록하는 경우
8485
if (!prevSeriesPost && series_id) {
8586
await this.seriesService.appendToSeries(series_id, post.id)
8687
}
@@ -100,7 +101,7 @@ export class PostApiService implements Service {
100101
id: prevSeriesPost.id,
101102
},
102103
}),
103-
this.db.series.update({
104+
this.db.series.updateMany({
104105
where: {
105106
id: prevSeriesPost.fk_series_id!,
106107
},
@@ -248,7 +249,7 @@ export class PostApiService implements Service {
248249
const isNotReleased = createdAt === releasedAt
249250
const isInitRelease = isNotReleased && post?.is_temp && !data.is_temp && !data.is_private
250251

251-
if (post && isInitRelease) {
252+
if (isInitRelease) {
252253
Object.assign(data, { released_at: new Date() })
253254
}
254255

apps/server/src/services/SeriesService/index.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export class SeriesService implements Service {
157157
}
158158

159159
public async appendToSeries(seriesId: string, postId: string): Promise<void> {
160-
console.log('appendToSeries')
161160
const postsCount = await this.db.seriesPost.count({
162161
where: {
163162
fk_series_id: seriesId,

0 commit comments

Comments
 (0)