Skip to content

Commit 280e07f

Browse files
committed
var typo
1 parent 35c6083 commit 280e07f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gateway/fields.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ func doRetainFields(obj map[string]interface{}, fields query.FieldSelectionMap)
4646
return
4747
}
4848

49-
_, nnf := fields["_unassoc"]
50-
_, nf := fields["_assoc"]
49+
_, unassoc := fields["_unassoc"]
50+
_, assoc := fields["_assoc"]
5151
for key := range obj {
5252
if _, ok := fields["!"+key]; ok {
5353
delete(obj, key)
5454
}
5555

5656
if _, ok := fields[key]; !ok {
5757
if _, isModel := obj[key].(map[string]interface{}); isModel {
58-
if nf {
58+
if assoc {
5959
continue
6060
}
6161
} else {
62-
if nnf {
62+
if unassoc {
6363
continue
6464
}
6565
}

0 commit comments

Comments
 (0)