Skip to content

Commit

Permalink
fix(orders): remove lodash-es remains
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Feb 13, 2024
1 parent 2728efd commit d2e2dd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/orders/src/app/orders/orders.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export class OrdersController {

@OryPermissionChecks((ctx) => {
const req = ctx.switchToHttp().getRequest<FastifyRequest>();
const currentUserId = get(req, `${CURRENT_USER_KEY}.id`);
const resourceId = get(req.params, 'id');
const currentUserId = req[`${CURRENT_USER_KEY}`]['id'];
const resourceId = req.params['id'] as string;
return relationTupleBuilder()
.subject(PermissionNamespaces[Resources.USERS], currentUserId)
.isIn('owners')
Expand All @@ -167,8 +167,8 @@ export class OrdersController {

@OryPermissionChecks((ctx) => {
const req = ctx.switchToHttp().getRequest<FastifyRequest>();
const currentUserId = get(req, `${CURRENT_USER_KEY}.id`);
const resourceId = get(req.params, 'id');
const currentUserId = req[`${CURRENT_USER_KEY}`]['id'];
const resourceId = req.params['id'] as string;
return relationTupleBuilder()
.subject(PermissionNamespaces[Resources.USERS], currentUserId)
.isIn('owners')
Expand Down

0 comments on commit d2e2dd4

Please sign in to comment.