Skip to content

Commit

Permalink
Resolved small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani committed Aug 24, 2023
1 parent fa7299e commit 93192b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/auth/auth-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export async function updateRoles(userId: string, role: Role, operation: RoleOpe
case RoleOperation.REMOVE: filter = {"$pull": {"roles": role}}; break;
}

// Appoly filter to roles collection, based on the operation
// Apply filter to roles collection, based on the operation
const collection: Collection = await DatabaseHelper.getCollection("auth", "roles");
await collection.updateOne({id: userId}, filter);
}
Expand Down

0 comments on commit 93192b0

Please sign in to comment.