code: private void updateLastSynchronizationDate(Date syncDate, Integer subscriptionId) {
          TokenSyncDate tokenSyncDate = ocpiRepository.getTokenSyncDate(subscriptionId);
  
          if (tokenSyncDate == null) {
              tokenSyncDate = new TokenSyncDate();
              tokenSyncDate.setSubscriptionId(subscriptionId);
          }
          tokenSyncDate.setSyncDate(syncDate);
  
          ocpiRepository.insertOrUpdate(tokenSyncDate);
      }
docs: Updates the last sync date for the passed subscription.
  
  @param syncDate       date of the last sync
  @param subscriptionId the subscription that should be updated