From b648c4bc4d17c1b0bacd9b98022051242d7a69eb Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Dec 2022 08:27:06 +0900 Subject: [PATCH] chore: fix reporisotry name --- .../{RegistrationTickets.ts => RegistrationTicket.ts} | 0 packages/backend/src/models/index.ts | 4 ++-- packages/backend/src/postgre.ts | 2 +- packages/backend/src/server/api/SignupApiService.ts | 4 ++-- packages/backend/src/server/api/endpoints/admin/invite.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) rename packages/backend/src/models/entities/{RegistrationTickets.ts => RegistrationTicket.ts} (100%) diff --git a/packages/backend/src/models/entities/RegistrationTickets.ts b/packages/backend/src/models/entities/RegistrationTicket.ts similarity index 100% rename from packages/backend/src/models/entities/RegistrationTickets.ts rename to packages/backend/src/models/entities/RegistrationTicket.ts diff --git a/packages/backend/src/models/index.ts b/packages/backend/src/models/index.ts index 559ed8c45a..c6b4fe11e9 100644 --- a/packages/backend/src/models/index.ts +++ b/packages/backend/src/models/index.ts @@ -40,7 +40,7 @@ import { Poll } from '@/models/entities/Poll.js'; import { PollVote } from '@/models/entities/PollVote.js'; import { PromoNote } from '@/models/entities/PromoNote.js'; import { PromoRead } from '@/models/entities/PromoRead.js'; -import { RegistrationTicket } from '@/models/entities/RegistrationTickets.js'; +import { RegistrationTicket } from '@/models/entities/RegistrationTicket.js'; import { RegistryItem } from '@/models/entities/RegistryItem.js'; import { Relay } from '@/models/entities/Relay.js'; import { Signin } from '@/models/entities/Signin.js'; @@ -171,7 +171,7 @@ export type PollsRepository = Repository; export type PollVotesRepository = Repository; export type PromoNotesRepository = Repository; export type PromoReadsRepository = Repository; -export type RegistrationTicketsRepository = Repository; +export type RegistrationTicketRepository = Repository; export type RegistryItemsRepository = Repository; export type RelaysRepository = Repository; export type SigninsRepository = Repository; diff --git a/packages/backend/src/postgre.ts b/packages/backend/src/postgre.ts index 0f9f7a6a96..829edbd7cf 100644 --- a/packages/backend/src/postgre.ts +++ b/packages/backend/src/postgre.ts @@ -48,7 +48,7 @@ import { Poll } from '@/models/entities/Poll.js'; import { PollVote } from '@/models/entities/PollVote.js'; import { PromoNote } from '@/models/entities/PromoNote.js'; import { PromoRead } from '@/models/entities/PromoRead.js'; -import { RegistrationTicket } from '@/models/entities/RegistrationTickets.js'; +import { RegistrationTicket } from '@/models/entities/RegistrationTicket.js'; import { RegistryItem } from '@/models/entities/RegistryItem.js'; import { Relay } from '@/models/entities/Relay.js'; import { Signin } from '@/models/entities/Signin.js'; diff --git a/packages/backend/src/server/api/SignupApiService.ts b/packages/backend/src/server/api/SignupApiService.ts index bba81250ab..d5acc1a0a6 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 { RegistrationTicketsRepository, UserPendingsRepository, UserProfilesRepository, UsersRepository } from '@/models/index.js'; +import type { RegistrationTicketRepository, 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: RegistrationTicketsRepository, + private registrationTicketsRepository: RegistrationTicketRepository, 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 bc42bf792a..b0450c9ba5 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 { RegistrationTicketsRepository } from '@/models/index.js'; +import type { RegistrationTicketRepository } 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 { constructor( @Inject(DI.registrationTicketsRepository) - private registrationTicketsRepository: RegistrationTicketsRepository, + private registrationTicketsRepository: RegistrationTicketRepository, private idService: IdService, ) {