Refactor the record code.

This commit is contained in:
Gucheng Wang
2021-11-07 16:51:16 +08:00
parent 0e71e603ac
commit 77fffcacac
7 changed files with 78 additions and 112 deletions

View File

@ -58,7 +58,7 @@ func RecordMessage(ctx *context.Context) {
return
}
record := util.Records(ctx)
record := object.NewRecord(ctx)
userId := getUser(ctx)
if userId != "" {