• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/googleapipush.php
  • Класс: BitrixCalendarSyncGoogleApiPush
  • Вызов: GoogleApiPush::setUnblockPush
static function setUnblockPush(string $type, int $entityId): void
{
	global $DB;

	$push = self::getPush($type, $entityId);
	if ($push !== null)
	{
		$strSql = "UPDATE b_calendar_push"
			. " SET NOT_PROCESSED = 'N'"
			. " WHERE ENTITY_TYPE = '" . $type . "' AND ENTITY_ID = " . $entityId . ";";
		$DB->Query($strSql);

		if ($push['NOT_PROCESSED'] === Dictionary::PUSH_STATUS_PROCESS['unprocessed'])
		{
			self::processIncomingPush($type, $entityId);
		}
	}
}