/**
* Update the last check timestamp of an update site
*
* @param int $updateSiteId The update site ID to mark as just checked
*
* @return void
*
* @since 3.6.0
*/
private function updateLastCheckTimestamp($updateSiteId)
{
$timestamp = time();
$db = Factory::getDbo();
$updateSiteId = (int) $updateSiteId;
$query = $db->getQuery(true)->update($db->quoteName('#__update_sites'))->set($db->quoteName('last_check_timestamp') . ' = :timestamp')->where($db->quoteName('update_site_id') . ' = :id')->bind(':timestamp', $timestamp, ParameterType::INTEGER)->bind(':id', $updateSiteId, ParameterType::INTEGER);
$db->setQuery($query);
$db->execute();
}