fix: user msg timestamp

This commit is contained in:
withchao
2025-02-07 14:33:17 +08:00
parent 8b752aff6f
commit 23976e4c74
2 changed files with 11 additions and 3 deletions
@@ -243,7 +243,14 @@ func (c *ConversationMgo) FindRandConversation(ctx context.Context, ts int64, li
"$add": []any{
bson.M{
"$toLong": "$latest_msg_destruct_time",
}, "$msg_destruct_time"},
},
bson.M{
"$multiply": []any{
"$msg_destruct_time",
1000, // convert to milliseconds
},
},
},
},
},
},