Merge branch '309-Transaction-details-design' of https://github.com/gradido/gradido into 309-Transaction-details-design

This commit is contained in:
ogerly 2021-07-06 16:13:15 +02:00
commit f03e8d0167

View File

@ -393,6 +393,16 @@ class AppRequestsController extends AppController
$this->set('body', $body);
}
public function getDecayStartBlock()
{
$transactionsTable = TableRegistry::getTableLocator()->get('Transactions');
$decayStartBlock = $transactionsTable->find()->where(['transaction_type_id' => 9]);
if(!$decayStartBlock->count()) {
return $this->returnJson(['state' => 'error', 'msg' => 'not found']);
}
return $this->returnJson(['state' => 'success', 'decay_start' => $decayStartBlock->first()->received]);
}
private function acquireAccessToken($session_id)
{