mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
mini changes hoping don't crash on staging anymore
This commit is contained in:
parent
4b315dd8d8
commit
89195fbcd7
@ -337,7 +337,7 @@ namespace controller {
|
||||
em->sendErrorsAsEmail();
|
||||
//return -1;
|
||||
}
|
||||
printf("result_count: %d\n", result_count);
|
||||
//printf("result_count: %d\n", result_count);
|
||||
if (result_count > 0) {
|
||||
auto now = Poco::DateTime();
|
||||
|
||||
|
||||
@ -195,9 +195,9 @@ namespace model {
|
||||
}
|
||||
catch (Poco::Exception& ex) {
|
||||
lock();
|
||||
addError(new ParamError(getTableName(), "mysql error by selecting", ex.displayText().data()));
|
||||
addError(new ParamError(getTableName(), "mysql error by selecting", ex.displayText()));
|
||||
for (auto it = fieldNames.begin(); it != fieldNames.end(); it++) {
|
||||
addError(new ParamError(getTableName(), "field name for select: ", it->data()));
|
||||
addError(new ParamError(getTableName(), "field name for select: ", *it));
|
||||
}
|
||||
//addError(new ParamError(getTableName(), "field name for select: ", fieldName.data()));
|
||||
unlock();
|
||||
|
||||
@ -33,9 +33,12 @@ int VerificationEmailResendTask::run()
|
||||
email_verification = controller::EmailVerificationCode::create(mUserId, model::table::EMAIL_OPT_IN_REGISTER_DIRECT);
|
||||
email_verification->getModel()->insertIntoDB(false);
|
||||
}
|
||||
else {
|
||||
email_verification->getModel()->addResendCountAndUpdate();
|
||||
}
|
||||
auto em = EmailManager::getInstance();
|
||||
em->addEmail(new model::Email(email_verification, user, model::EMAIL_USER_VERIFICATION_CODE_RESEND));
|
||||
email_verification->getModel()->addResendCountAndUpdate();
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user