Skip to content

Commit 044c5b5

Browse files
committed
fix: group account list
1 parent 9e1550b commit 044c5b5

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.secrets/local.mk

Lines changed: 0 additions & 1 deletion
This file was deleted.

cue.mod/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
gen/
2-
pkg/
2+
pkg/
3+
module.sum

cue.mod/module.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require: {
44
"github.com/innoai-tech/runtime": "v0.0.0-20230313062040-872280802f3b"
55
"k8s.io/api": "v0.25.4"
66
"k8s.io/apimachinery": "v0.25.4"
7-
"wagon.octohelm.tech": "v0.0.0-20200202235959-e64a70c55ed2"
7+
"wagon.octohelm.tech": "v0.0.0"
88
}
99

1010
replace: {

cue.mod/module.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github.com/innoai-tech/runtime v0.0.0-20230313062040-872280802f3b h1:BKnLADxBLU0SKiWIa9ZEL2is7AzLc1B4b0YY21D4vBg=
2-
wagon.octohelm.tech v0.0.0-20200202235959-3ffa3ac0907e
2+
wagon.octohelm.tech v0.0.0 h1:MGaJBtAuLJTv0EuRtd405SA68SAvXQwkhQkwB5HvtnY=

internal/dashboard/domain/group/repository/group_account_repository.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ func (r *GroupAccountRepository) List(ctx context.Context, where b.SqlExpr) ([]*
7070
list := make([]*group.Account, 0)
7171

7272
if err := dal.From(group.AccountT).
73-
Where(where).
73+
Where(
74+
b.And(
75+
group.AccountT.GroupID.By(b.Value(r.Group.ID)),
76+
where,
77+
),
78+
).
7479
Scan(dal.Recv(func(v *group.Account) error {
7580
list = append(list, v)
7681
return nil

0 commit comments

Comments
 (0)