Fix assert unreachable, remove unused variables (#13753)
Small code cleanup
This commit is contained in:
@@ -3,7 +3,7 @@ import { createParamDecorator, type ExecutionContext } from '@nestjs/common';
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
export const AuthApiKey = createParamDecorator(
|
||||
(data: unknown, ctx: ExecutionContext) => {
|
||||
(_data: unknown, ctx: ExecutionContext) => {
|
||||
const request = getRequest(ctx);
|
||||
|
||||
return request.apiKey;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { type ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
export const AuthUserWorkspaceId = createParamDecorator(
|
||||
(data: unknown, ctx: ExecutionContext) => {
|
||||
(_data: unknown, ctx: ExecutionContext) => {
|
||||
const request = getRequest(ctx);
|
||||
|
||||
return request.userWorkspaceId;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { type ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
export const AuthWorkspaceMemberId = createParamDecorator(
|
||||
(data: unknown, ctx: ExecutionContext) => {
|
||||
(_data: unknown, ctx: ExecutionContext) => {
|
||||
const request = getRequest(ctx);
|
||||
|
||||
return request.workspaceMemberId;
|
||||
|
||||
Reference in New Issue
Block a user