Use the auth methods to get IDs to avoid unneeded casts
This commit is contained in:
@ -96,7 +96,10 @@ func TestLabel_ReadAll(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "invalid user",
|
||||
name: "invalid user",
|
||||
args: args{
|
||||
a: &User{ID: -1},
|
||||
},
|
||||
wantErr: true,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user