Skip to content

Commit b29cc41

Browse files
committed
Fixed typo
1 parent f294460 commit b29cc41

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/bodyguard/read-filter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function readFilter(
2020
): any {
2121
if (obj instanceof Array) {
2222
for (let i = 0; i < obj.length; i++) {
23-
const subObjTpye = obj[i].constructor;
24-
obj[i] = readFilter(obj[i], user, subObjTpye, userType);
23+
const subObjType = obj[i].constructor;
24+
obj[i] = readFilter(obj[i], user, subObjType, userType);
2525
}
2626
}
2727
else if (obj instanceof Object) {
@@ -36,11 +36,11 @@ export function readFilter(
3636
(obj[member] instanceof Object &&
3737
!(obj[member] instanceof Date))
3838
) {
39-
const subObjTpye = obj[member].constructor;
39+
const subObjType = obj[member].constructor;
4040
obj[member] = readFilter(
4141
obj[member],
4242
user,
43-
subObjTpye,
43+
subObjType,
4444
userType
4545
);
4646
}

0 commit comments

Comments
 (0)