Skip to content
Snippets Groups Projects
Verified Commit 10f7b59d authored by Damien's avatar Damien
Browse files

FEAT #16982 TIME 1:25 Convert thumbnails after yousign

parent b6026de3
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class HistoryModel ...@@ -40,7 +40,7 @@ class HistoryModel
public static function create(array $args) public static function create(array $args)
{ {
ValidatorModel::notEmpty($args, ['code', 'object_type', 'object_id', 'type', 'user_id', 'user', 'message', 'data', 'ip']); ValidatorModel::notEmpty($args, ['code', 'object_type', 'object_id', 'type', 'user', 'message', 'data', 'ip']);
ValidatorModel::stringType($args, ['code', 'object_type', 'type', 'user', 'message', 'data', 'ip']); ValidatorModel::stringType($args, ['code', 'object_type', 'type', 'user', 'message', 'data', 'ip']);
ValidatorModel::intVal($args, ['user_id']); ValidatorModel::intVal($args, ['user_id']);
......
...@@ -23,6 +23,7 @@ use ExternalSignatoryBook\models\ExternalSignatoryBookModel; ...@@ -23,6 +23,7 @@ use ExternalSignatoryBook\models\ExternalSignatoryBookModel;
use Slim\Http\Request; use Slim\Http\Request;
use Slim\Http\Response; use Slim\Http\Response;
use SrcCore\controllers\UrlController; use SrcCore\controllers\UrlController;
use SrcCore\models\CoreConfigModel;
use SrcCore\models\CurlModel; use SrcCore\models\CurlModel;
use SrcCore\models\ValidatorModel; use SrcCore\models\ValidatorModel;
use Workflow\models\WorkflowExternalInformationModel; use Workflow\models\WorkflowExternalInformationModel;
...@@ -247,6 +248,13 @@ class YousignController ...@@ -247,6 +248,13 @@ class YousignController
'filename' => $storeInfos['filename'], 'filename' => $storeInfos['filename'],
'fingerprint' => $storeInfos['fingerprint'] 'fingerprint' => $storeInfos['fingerprint']
]); ]);
AdrModel::deleteDocumentAdr([
'where' => ['main_document_id = ?', 'type like ?'],
'data' => [$args['id'], 'TNL%']
]);
$configPath = CoreConfigModel::getConfigPath();
exec("php src/app/convert/scripts/ThumbnailScript.php '{$configPath}' {$args['id']} 'document' 0 > /dev/null &");
} }
$GLOBALS['webhook'] = 'yousign webhook'; $GLOBALS['webhook'] = 'yousign webhook';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment