File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/velog-scripts/scripts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ class Runner implements IRunner {
26
26
const user = await this . findUsersByUsername ( username )
27
27
const posts = await this . findWritenPostsByUserId ( user . id )
28
28
29
+ // add block list
30
+ await this . redis . addBlockList ( username )
31
+
29
32
if ( posts . length === 0 ) {
30
33
console . log ( `${ user . username } 유저의 비공개 처리 할 게시글이 없습니다.` )
31
34
continue
@@ -44,9 +47,6 @@ class Runner implements IRunner {
44
47
// set private = true
45
48
await this . setIsPrivatePost ( postIds )
46
49
47
- // add block list
48
- await this . redis . addBlockList ( username )
49
-
50
50
const blockUesrInfo : BlockUserInfo = {
51
51
id : user . id ,
52
52
username : user . username ,
@@ -62,7 +62,7 @@ class Runner implements IRunner {
62
62
}
63
63
64
64
if ( handledUser . length === 0 ) {
65
- console . log ( '게시글 비공개 처리된 유저가 존재하지 않습니다.' )
65
+ console . log ( '비공개 게시글 처리된 유저가 존재하지 않습니다.' )
66
66
process . exit ( 0 )
67
67
}
68
68
You can’t perform that action at this time.
0 commit comments