|
|
@@ -165,6 +165,9 @@ export class MomentsService {
|
|
|
setTimeout(async () => {
|
|
|
moments.isDel = false
|
|
|
await this.momentsRepository.save(moments)
|
|
|
+ const chatRole = await this.chatRoleRepository.findOneBy({ id: moments.userId })
|
|
|
+ chatRole.dynamicNumber += 1
|
|
|
+ await this.chatRoleRepository.save(chatRole)
|
|
|
}, hours * 60 * 60 * 1000 + minutes * 60 * 1000)
|
|
|
})
|
|
|
}
|