mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch '309-Transaction-details-design' of https://github.com/gradido/gradido into 309-Transaction-details-design
This commit is contained in:
commit
f03e8d0167
@ -393,6 +393,16 @@ class AppRequestsController extends AppController
|
|||||||
$this->set('body', $body);
|
$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)
|
private function acquireAccessToken($session_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user