Skip to content

Commit

Permalink
fix: should use Symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavaliere committed Sep 29, 2018
1 parent f3dbd6f commit 623319b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/endpoint/endpoint.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'reflect-metadata';

const EndpointMetadata = 'Endpoint';
const EndpointMetadata = Symbol('Endpoint');

export interface EndpointOptions {
readonly name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/lambda/lambda.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { extractArguments } from '../utils';

const d = debug('microgamma:apigator:lambda');

export const LambdaMetadata = 'Lambda';
export const LambdaMetadata = Symbol('Lambda');

export interface LambdaOptions {
name?: string;
Expand Down

0 comments on commit 623319b

Please sign in to comment.