mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
error message start with upper case consistency
This commit is contained in:
parent
0f7f38e2cd
commit
9fa9bb127b
@ -75,7 +75,7 @@ describe('EmailOptinCodes', () => {
|
|||||||
query({ query: queryOptIn, variables: { optIn: optinCode } }),
|
query({ query: queryOptIn, variables: { optIn: optinCode } }),
|
||||||
).resolves.toMatchObject({
|
).resolves.toMatchObject({
|
||||||
data: null,
|
data: null,
|
||||||
errors: [new GraphQLError('email was sent more than 24 hours ago')],
|
errors: [new GraphQLError('Email was sent more than 24 hours ago')],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ describe('EmailOptinCodes', () => {
|
|||||||
mutate({ mutation: setPassword, variables: { code: optinCode, password: 'Aa12345_' } }),
|
mutate({ mutation: setPassword, variables: { code: optinCode, password: 'Aa12345_' } }),
|
||||||
).resolves.toMatchObject({
|
).resolves.toMatchObject({
|
||||||
data: null,
|
data: null,
|
||||||
errors: [new GraphQLError('email was sent more than 24 hours ago')],
|
errors: [new GraphQLError('Email was sent more than 24 hours ago')],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -439,7 +439,7 @@ export class UserResolver {
|
|||||||
// Code is only valid for `CONFIG.EMAIL_CODE_VALID_TIME` minutes
|
// Code is only valid for `CONFIG.EMAIL_CODE_VALID_TIME` minutes
|
||||||
if (!isEmailVerificationCodeValid(userContact.updatedAt || userContact.createdAt)) {
|
if (!isEmailVerificationCodeValid(userContact.updatedAt || userContact.createdAt)) {
|
||||||
throw new LogError(
|
throw new LogError(
|
||||||
`email was sent more than ${printTimeDuration(CONFIG.EMAIL_CODE_VALID_TIME)} ago`,
|
`Email was sent more than ${printTimeDuration(CONFIG.EMAIL_CODE_VALID_TIME)} ago`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
logger.debug('EmailVerificationCode is valid...')
|
logger.debug('EmailVerificationCode is valid...')
|
||||||
@ -515,7 +515,7 @@ export class UserResolver {
|
|||||||
// Code is only valid for `CONFIG.EMAIL_CODE_VALID_TIME` minutes
|
// Code is only valid for `CONFIG.EMAIL_CODE_VALID_TIME` minutes
|
||||||
if (!isEmailVerificationCodeValid(userContact.updatedAt || userContact.createdAt)) {
|
if (!isEmailVerificationCodeValid(userContact.updatedAt || userContact.createdAt)) {
|
||||||
throw new LogError(
|
throw new LogError(
|
||||||
`email was sent more than ${printTimeDuration(CONFIG.EMAIL_CODE_VALID_TIME)} ago`,
|
`Email was sent more than ${printTimeDuration(CONFIG.EMAIL_CODE_VALID_TIME)} ago`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
logger.info(`queryOptIn(${optIn}) successful...`)
|
logger.info(`queryOptIn(${optIn}) successful...`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user