mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-06-06 08:00:32 +08:00
fix style column of recorded message is null
This commit is contained in:
@@ -25,7 +25,7 @@ export class ChatMessageRecord {
|
||||
@Column({
|
||||
nullable: true
|
||||
})
|
||||
style?: 'sent' | 'receive';
|
||||
style?: 'sent' | 'received';
|
||||
|
||||
@Column({
|
||||
nullable: true
|
||||
|
||||
@@ -189,7 +189,7 @@ const attachRequestsListener = async (target: Target) => {
|
||||
mappedItem.mid = it.mid
|
||||
mappedItem.encryptFromUserId = it.isSelf ? currentUserInfo.encryptUserId : bossInfo.encryptBossId
|
||||
mappedItem.encryptToUserId = it.isSelf ? bossInfo.encryptBossId : currentUserInfo.encryptUserId
|
||||
mappedItem.style = it.style
|
||||
mappedItem.style = it.isSelf ? 'sent' : 'received'
|
||||
mappedItem.type = it.type
|
||||
mappedItem.time = it.time ? new Date(it.time) : null
|
||||
mappedItem.text = it.text
|
||||
|
||||
Reference in New Issue
Block a user