File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- import { RegistationRequest } from '~~/types/IRegistration' ;
1
+ import { RegistrationRequest } from '~~/types/IRegistration' ;
2
2
import { H3Event } from 'h3' ;
3
3
import { getUserBySessionToken } from './sessionService' ;
4
4
import { isString } from '@vueuse/core' ;
5
5
import { User } from '@prisma/client' ;
6
6
import { IUser } from '~~/types/IUser' ;
7
7
import { validate } from './validator' ;
8
8
9
- export async function validateUser ( data : RegistationRequest ) {
9
+ export async function validateUser ( data : RegistrationRequest ) {
10
10
11
11
const errors = await validate ( data )
12
12
Original file line number Diff line number Diff line change 1
1
import { getUserByEmail , getUserByUserName } from "~/server/database/repositories/userRespository"
2
- import { RegistationRequest } from "~/types/IRegistration"
2
+ import { RegistrationRequest } from "~/types/IRegistration"
3
3
4
4
5
- export async function validate ( data : RegistationRequest ) {
5
+ export async function validate ( data : RegistrationRequest ) {
6
6
7
7
const errors = new Map < string , { message : string | undefined } > ( )
8
8
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ export type IRegistrationErrors = {
2
2
hasErrors ?: string
3
3
}
4
4
5
- export type RegistationResponse = {
5
+ export type RegistrationResponse = {
6
6
hasErrors : boolean ,
7
7
errors ?: IRegistrationErrors
8
8
}
9
9
10
- export type RegistationRequest = {
10
+ export type RegistrationRequest = {
11
11
name : string ,
12
12
username ?: string
13
13
email ?: string
You can’t perform that action at this time.
0 commit comments