Skip to content

Commit 5aa44b5

Browse files
committed
fix: correct spellings
1 parent 0aee7a6 commit 5aa44b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/diesel_models/src/query/user_role.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ impl UserRole {
138138
profile_id: Option<String>,
139139
version: UserRoleVersion,
140140
) -> StorageResult<Self> {
141-
// Cheking in user roles, for a user in token hierarchy only one of the relation will be true, either org level, merchant level or profile level
141+
// Checking in user roles, for a user in token hierarchy, only one of the relation will be true, either org level, merchant level or profile level
142142
// Find from user_roles where user_id = ?
143-
// && ((org_id = ? && merchnat_id = null && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = ?))
143+
// && ((org_id = ? && merchant_id = null && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = ?))
144144
// && version = ?
145145
let predicate = dsl::user_id
146146
.eq(user_id)
@@ -172,9 +172,9 @@ impl UserRole {
172172
profile_id: Option<String>,
173173
version: UserRoleVersion,
174174
) -> StorageResult<Self> {
175-
// Cheking in user roles, for a user in token hierarchy only one of the relation will be true, either org level, merchant level or profile level
175+
// Checking in user roles, for a user in token hierarchy, only one of the relation will be true, either org level, merchant level or profile level
176176
// Find from user_roles where user_id = ?
177-
// && ((org_id = ? && merchnat_id = null && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = null) || (org_id = ? && merchnat_id = ? && profile_id = ?))
177+
// && ((org_id = ? && merchant_id = null && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = null) || (org_id = ? && merchant_id = ? && profile_id = ?))
178178
// && version = ?
179179
let predicate = dsl::user_id
180180
.eq(user_id)

0 commit comments

Comments
 (0)