Skip to content

Commit 50679bd

Browse files
committed
fix: build error
1 parent ede7f53 commit 50679bd

File tree

1 file changed

+2
-0
lines changed
  • packages/velog-server/src/services/PostApiService

1 file changed

+2
-0
lines changed

packages/velog-server/src/services/PostApiService/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ export class PostApiService implements Service {
279279

280280
// create feed
281281
setTimeout(() => {
282+
if (!post) return
282283
const queueData: CreateFeedArgs = {
283284
fk_following_id: signedUserId,
284285
fk_post_id: post.id,
@@ -288,6 +289,7 @@ export class PostApiService implements Service {
288289

289290
// check spam
290291
setTimeout(() => {
292+
if (!post) return
291293
if (isSpam) return
292294
if (isTusted) return
293295
const queueData: CheckPostSpamArgs = {

0 commit comments

Comments
 (0)