Skip to content

Commit

Permalink
fix(): update decorator schematic to use SetMetadata over deprecated …
Browse files Browse the repository at this point in the history
…ReflectMetadata
  • Loading branch information
elylucas committed Dec 20, 2019
1 parent b6f4e10 commit 06444fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/decorator/files/js/__name__.decorator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ReflectMetadata } from '@nestjs/common';
import { SetMetadata } from '@nestjs/common';

export const <%= classify(name) %> = (...args) => ReflectMetadata('<%= name %>', args);
export const <%= classify(name) %> = (...args) => SetMetadata('<%= name %>', args);
4 changes: 2 additions & 2 deletions src/lib/decorator/files/ts/__name__.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ReflectMetadata } from '@nestjs/common';
import { SetMetadata } from '@nestjs/common';

export const <%= classify(name) %> = (...args: string[]) => ReflectMetadata('<%= name %>', args);
export const <%= classify(name) %> = (...args: string[]) => SetMetadata('<%= name %>', args);

0 comments on commit 06444fe

Please sign in to comment.