fix datatable using token api and paginate when searching, fix skrd_amount column to decimal 20

This commit is contained in:
arifal hidayat
2025-01-30 01:28:36 +07:00
parent 538cdb87ae
commit 8591fafd84
27 changed files with 1228 additions and 1012 deletions

View File

@@ -143,7 +143,7 @@ class ServiceSIMBG
'page' => $currentPage,
'size' => 20,
'sort' => 'ASC',
'type' => 'task',
'type' => 'task'
]);
$url = "/api/pbg/v1/list/?" . $queryParams;
@@ -192,15 +192,15 @@ class ServiceSIMBG
$this->syncTaskDetailSubmit($item['uid']);
$savedCount++;
} catch (Exception $e) {
$importDatasource->update([
'status' => ImportDatasourceStatus::Failed->value,
'message' => 'failed to save',
'response_body' => $item
]);
Log::error("Failed to process task", [
'error' => $e->getMessage(),
'task' => $item,
]);
$importDatasource->update([
'status' => ImportDatasourceStatus::Failed->value,
'message' => $e->getMessage(),
'response_body' => $item
]);
$failedCount++;
}
}