File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/velog-server/src/services/PostLikeService Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ export class PostLikeService implements Service {
120
120
await this . postService . updatePostScore ( postId )
121
121
}
122
122
123
- setTimeout ( ( ) => {
123
+ setTimeout ( async ( ) => {
124
124
try {
125
- this . searchService . searchSync . update ( post . id )
125
+ await this . searchService . searchSync . update ( post . id )
126
126
} catch ( error ) {
127
127
console . log ( 'likePost searchSync update error' , error )
128
128
}
@@ -190,9 +190,9 @@ export class PostLikeService implements Service {
190
190
} )
191
191
192
192
await this . postService . updatePostScore ( postId )
193
- setTimeout ( ( ) => {
193
+ setTimeout ( async ( ) => {
194
194
try {
195
- this . searchService . searchSync . update ( post . id )
195
+ await this . searchService . searchSync . update ( post . id )
196
196
} catch ( error ) {
197
197
console . log ( 'unlikePost searchSync update error' , error )
198
198
}
You can’t perform that action at this time.
0 commit comments