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 ) ; }
Updates the last sync date for the passed subscription .