test cron

This commit is contained in:
wangchuxiao
2022-11-03 18:31:29 +08:00
parent cdf851d196
commit 6d90cd59f2
2 changed files with 34 additions and 28 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ func (d *DataBases) GetUserMsgListByIndex(ID string, index int64) (*UserChat, er
return nil, utils.Wrap(err, fmt.Sprintf("cursor is %s", cursor.Current.String()))
}
if len(msgs) > 0 {
return &msgs[0], err
return &msgs[0], nil
} else {
return nil, ErrMsgListNotExist
}