From b11f8b0aae14ba8c2e35ce216a3fbfc60e7e77a2 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Sun, 25 Dec 2022 08:30:13 +0900
Subject: [PATCH] chore: fix reporisotry name

---
 packages/backend/src/models/index.ts                      | 2 +-
 packages/backend/src/server/api/SignupApiService.ts       | 4 ++--
 packages/backend/src/server/api/endpoints/admin/invite.ts | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/backend/src/models/index.ts b/packages/backend/src/models/index.ts
index c6b4fe11e9..7fde3fbedb 100644
--- a/packages/backend/src/models/index.ts
+++ b/packages/backend/src/models/index.ts
@@ -171,7 +171,7 @@ export type PollsRepository = Repository<Poll>;
 export type PollVotesRepository = Repository<PollVote>;
 export type PromoNotesRepository = Repository<PromoNote>;
 export type PromoReadsRepository = Repository<PromoRead>;
-export type RegistrationTicketRepository = Repository<RegistrationTicket>;
+export type RegistrationTicketsRepository = Repository<RegistrationTicket>;
 export type RegistryItemsRepository = Repository<RegistryItem>;
 export type RelaysRepository = Repository<Relay>;
 export type SigninsRepository = Repository<Signin>;
diff --git a/packages/backend/src/server/api/SignupApiService.ts b/packages/backend/src/server/api/SignupApiService.ts
index d5acc1a0a6..bba81250ab 100644
--- a/packages/backend/src/server/api/SignupApiService.ts
+++ b/packages/backend/src/server/api/SignupApiService.ts
@@ -2,7 +2,7 @@ import { Inject, Injectable } from '@nestjs/common';
 import rndstr from 'rndstr';
 import bcrypt from 'bcryptjs';
 import { DI } from '@/di-symbols.js';
-import type { RegistrationTicketRepository, UserPendingsRepository, UserProfilesRepository, UsersRepository } from '@/models/index.js';
+import type { RegistrationTicketsRepository, UserPendingsRepository, UserProfilesRepository, UsersRepository } from '@/models/index.js';
 import type { Config } from '@/config.js';
 import { MetaService } from '@/core/MetaService.js';
 import { CaptchaService } from '@/core/CaptchaService.js';
@@ -32,7 +32,7 @@ export class SignupApiService {
 		private userPendingsRepository: UserPendingsRepository,
 
 		@Inject(DI.registrationTicketsRepository)
-		private registrationTicketsRepository: RegistrationTicketRepository,
+		private registrationTicketsRepository: RegistrationTicketsRepository,
 
 		private userEntityService: UserEntityService,
 		private idService: IdService,
diff --git a/packages/backend/src/server/api/endpoints/admin/invite.ts b/packages/backend/src/server/api/endpoints/admin/invite.ts
index b0450c9ba5..bc42bf792a 100644
--- a/packages/backend/src/server/api/endpoints/admin/invite.ts
+++ b/packages/backend/src/server/api/endpoints/admin/invite.ts
@@ -1,7 +1,7 @@
 import rndstr from 'rndstr';
 import { Inject, Injectable } from '@nestjs/common';
 import { Endpoint } from '@/server/api/endpoint-base.js';
-import type { RegistrationTicketRepository } from '@/models/index.js';
+import type { RegistrationTicketsRepository } from '@/models/index.js';
 import { IdService } from '@/core/IdService.js';
 import { DI } from '@/di-symbols.js';
 
@@ -37,7 +37,7 @@ export const paramDef = {
 export default class extends Endpoint<typeof meta, typeof paramDef> {
 	constructor(
 		@Inject(DI.registrationTicketsRepository)
-		private registrationTicketsRepository: RegistrationTicketRepository,
+		private registrationTicketsRepository: RegistrationTicketsRepository,
 
 		private idService: IdService,
 	) {