fix: search log

This commit is contained in:
icey-yu 2024-07-18 17:49:00 +08:00
parent 643ed9c8e7
commit 84e78edc2f

View File

@ -119,6 +119,7 @@ func (u *userDatabase) InitOnce(ctx context.Context, users []*model.User) error
// FindWithError Get the information of the specified user and return an error if the userID is not found.
func (u *userDatabase) FindWithError(ctx context.Context, userIDs []string) (users []*model.User, err error) {
userIDs = datautil.Distinct(userIDs)
users, err = u.cache.GetUsersInfo(ctx, userIDs)
if err != nil {
return