Change the error message to match the behavior of the code.

This commit is contained in:
elweyn 2022-03-16 05:38:33 +01:00
parent 085e2b5021
commit c2119aa410

View File

@ -490,7 +490,7 @@ export class UserResolver {
// Code is only valid for `CONFIG.EMAIL_CODE_VALID_TIME` minutes
if (!isOptInCodeValid(optInCode)) {
throw new Error(`email already sent less than $(CONFIG.EMAIL_CODE_VALID_TIME} minutes ago`)
throw new Error(`email already more than $(CONFIG.EMAIL_CODE_VALID_TIME} minutes ago`)
}
// load user