File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/velog-scripts/scripts Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import inquirer from 'inquirer'
6
6
import { ENV } from '../env/env.mjs'
7
7
import { DiscordService } from '../lib/discord/DiscordService.mjs'
8
8
import { BlockListService } from '../lib/blockList/BlockListService.mjs'
9
-
9
+ import { format } from 'date-fns'
10
10
interface IRunner { }
11
11
12
12
@injectable ( )
@@ -42,6 +42,7 @@ class Runner implements IRunner {
42
42
user . id ,
43
43
username ,
44
44
user . profile ?. display_name || null ,
45
+ user . created_at ,
45
46
)
46
47
47
48
if ( ! askResult . is_set_private ) continue
@@ -136,6 +137,7 @@ class Runner implements IRunner {
136
137
userId : string ,
137
138
username : string ,
138
139
displayName : string | null ,
140
+ createdAt : Date ,
139
141
) : Promise < AskDeletePostsResult > {
140
142
const blockedList = await this . blockList . readBlockList ( )
141
143
if ( blockedList . includes ( username ) ) {
@@ -149,6 +151,7 @@ class Runner implements IRunner {
149
151
id : userId ,
150
152
username : username ,
151
153
displayName : displayName ?? '' ,
154
+ '가입 날짜' : format ( createdAt , 'yyyy-MM-dd' ) ,
152
155
'업데이트 될 글 개수' : posts . length ,
153
156
'최근 작성된 글' : posts . slice ( 0 , 5 ) . map ( ( post ) => ( {
154
157
title : post . title ,
You can’t perform that action at this time.
0 commit comments