Skip to content

Commit

Permalink
🎨 QoL Update
Browse files Browse the repository at this point in the history
  • Loading branch information
YasaitoriOvO committed Jan 24, 2025
1 parent 8ae2b04 commit 2be945d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controller/UserController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
checkEmailAuthenticatorVerificationCodeService,
deleteUserEmailAuthenticatorService,
sendDeleteUserEmailAuthenticatorService,
getUserExistsByUIDService,
checkUserExistsByUIDService,
} from '../service/UserService.js'
import { koaCtx, koaNext } from '../type/koaTypes.js'
import {
Expand Down Expand Up @@ -422,7 +422,7 @@ export const userExistsCheckByUIDController = async (ctx: koaCtx, next: koaNext)
const userExistsCheckRequest: UserExistsCheckByUIDRequestDto = {
uid: uid ? parseInt(uid, 10) : -1,
}
ctx.body = await getUserExistsByUIDService(userExistsCheckRequest)
ctx.body = await checkUserExistsByUIDService(userExistsCheckRequest)
await next()
}

Expand Down
4 changes: 2 additions & 2 deletions src/service/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,10 +774,10 @@ export const updateOrCreateUserInfoService = async (updateOrCreateUserInfoReques

/**
* 根据 UID 获取用户是否存在
* @param getUserExistsByUIDRequest 获取用户是否存在的请求参数
* @param UserExistsCheckByUIDRequestDto 获取用户是否存在的请求参数
* @returns 获取用户是否存在的请求结果
*/
export const getUserExistsByUIDService = async (UserExistsCheckByUIDRequest: UserExistsCheckByUIDRequestDto): Promise<UserExistsCheckByUIDResponseDto> => {
export const checkUserExistsByUIDService = async (UserExistsCheckByUIDRequest: UserExistsCheckByUIDRequestDto): Promise<UserExistsCheckByUIDResponseDto> => {
try {
if (!!UserExistsCheckByUIDRequest.uid) {
const { uid } = UserExistsCheckByUIDRequest
Expand Down

0 comments on commit 2be945d

Please sign in to comment.