Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 58303b5

Browse files
committed
fix issue with db list returning 1 element when empty
1 parent a920a91 commit 58303b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (b *Base) List(auth internal.Auth, db *mongo.Database, col string, params L
120120
}
121121

122122
if len(results) == 0 {
123-
results = make([]bson.M, 1)
123+
results = make([]bson.M, 0)
124124
}
125125

126126
result.Results = results

0 commit comments

Comments
 (0)