File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11import { isValidStringProperty } from '../validation/string' ;
22import { DbVersionSupport } from '../utils/dbVersion' ;
33import { ConsistencyLevel } from './replication' ;
4- import { isNotValidWeaviateVersion } from '../validation/version' ;
4+ import { isValidWeaviateVersion } from '../validation/version' ;
55
66const objectsPathPrefix = '/objects' ;
77
@@ -178,7 +178,7 @@ export class ReferencesPath {
178178 support . warns . notSupportedClassNamespacedEndpointsForReferences ( ) ;
179179 }
180180 if ( support . version ) {
181- if ( isNotValidWeaviateVersion ( support . version ) ) {
181+ if ( ! isValidWeaviateVersion ( support . version ) ) {
182182 support . warns . deprecatedWeaviateTooOld ( ) ;
183183 }
184184 }
Original file line number Diff line number Diff line change 11import { isValidStringProperty } from '../validation/string' ;
22import { DbVersionSupport } from './dbVersion' ;
3- import { isNotValidWeaviateVersion } from '../validation/version' ;
3+ import { isValidWeaviateVersion } from '../validation/version' ;
44
55const beaconPathPrefix = 'weaviate://localhost' ;
66
@@ -43,7 +43,7 @@ export class BeaconPath {
4343 support . warns . notSupportedClassNamespacedEndpointsForBeacons ( ) ;
4444 }
4545 if ( support . version ) {
46- if ( isNotValidWeaviateVersion ( support . version ) ) {
46+ if ( ! isValidWeaviateVersion ( support . version ) ) {
4747 support . warns . deprecatedWeaviateTooOld ( ) ;
4848 }
4949 }
Original file line number Diff line number Diff line change 1- export function isNotValidWeaviateVersion ( version : string ) {
1+ export function isValidWeaviateVersion ( version : string ) {
22 if ( typeof version === 'string' ) {
33 const versionNumbers = version . split ( '.' ) ;
44 if ( versionNumbers . length >= 2 ) {
55 const major = parseInt ( versionNumbers [ 0 ] , 10 ) ;
66 const minor = parseInt ( versionNumbers [ 1 ] , 10 ) ;
7- return major <= 1 && minor < 16 ;
7+ return major <= 1 && minor < 16 ? false : true ;
88 }
99 }
10- return false ;
10+ return true ;
1111}
You can’t perform that action at this time.
0 commit comments