From 0b35afc6af740882954c52e4d81245d7f36a95c6 Mon Sep 17 00:00:00 2001 From: akiyatomohiro Date: Wed, 31 Jul 2024 15:29:13 +0900 Subject: [PATCH] add FindAll(user) --- account/accountinfrastructure/accountmongo/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/accountinfrastructure/accountmongo/user.go b/account/accountinfrastructure/accountmongo/user.go index 1fb09422..c38dd87e 100644 --- a/account/accountinfrastructure/accountmongo/user.go +++ b/account/accountinfrastructure/accountmongo/user.go @@ -37,7 +37,7 @@ func (r *User) Init() error { } func (r *User) FindAll(ctx context.Context) (user.List, error) { - res, err := r.find(ctx, nil) + res, err := r.find(ctx, bson.M{}) if err != nil { return nil, err }