Fixe small error.

This commit is contained in:
elweyn 2021-10-12 16:49:14 +02:00
parent 74ac8b7fcc
commit 36e6a459a4
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ Poco::JSON::Object* JsonHasElopage::handle(Poco::Dynamic::Var params)
auto elopage_buy = Poco::AutoPtr<model::table::ElopageBuy>(new model::table::ElopageBuy);
result = stateSuccess();
result->set("hasElopage", elopage_buy->isExistInDB("email", mSession->getNewUser()->getModel()->getEmail()));
result->set("hasElopage", elopage_buy->isExistInDB("payer_email", mSession->getNewUser()->getModel()->getEmail()));
return result;
}

View File

@ -113,7 +113,7 @@ namespace model {
int UserHasElopageTask::run()
{
auto elopage_buy = Poco::AutoPtr<model::table::ElopageBuy>(new model::table::ElopageBuy);
bool hasElopage = elopage_buy->isExistInDB("payer_email", mEmail);
mHasElopage = elopage_buy->isExistInDB("payer_email", mEmail);
return 0;
}
}