Skip to content

Commit 2fc36a8

Browse files
committed
Remove unused decorators
1 parent 814e95a commit 2fc36a8

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/api/components/global/user-invitation/service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { bind } from 'decko';
2-
import { Service } from 'typedi';
32
import { Repository, FindConditions, getManager } from 'typeorm';
43

54
import { UserInvitation } from './model';
65

7-
@Service()
86
export class UserInvitationService {
97
private readonly repo: Repository<UserInvitation> = getManager().getRepository(UserInvitation);
108

src/services/cache.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import nodeCache from 'node-cache';
2-
import { Service } from 'typedi';
32

43
import { env } from '@config/globals';
54

6-
@Service()
75
export class CacheService {
86
private static cache: nodeCache = new nodeCache({ stdTTL: env.CACHE_TTL });
97

src/services/mail.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Data, renderFile } from 'ejs';
22
import { createTransport, SendMailOptions, SentMessageInfo, Transporter, TransportOptions } from 'nodemailer';
33
import { resolve } from 'path';
4-
import { Service } from 'typedi';
54

65
import { env } from '@config/globals';
76
import { logger } from '@config/logger';
@@ -12,7 +11,6 @@ import { logger } from '@config/logger';
1211
* Service for sending emails
1312
* Mail services in components inherits from this one
1413
*/
15-
@Service()
1614
export class MailService {
1715
private transporter: Transporter = createTransport(env.SMTP as TransportOptions);
1816

0 commit comments

Comments
 (0)