diff --git a/src/lib/db/client-instance-store.ts b/src/lib/db/client-instance-store.ts index ccdcf388d8..f0f75f5821 100644 --- a/src/lib/db/client-instance-store.ts +++ b/src/lib/db/client-instance-store.ts @@ -167,10 +167,11 @@ export default class ClientInstanceStore implements IClientInstanceStore { } async getBySdkName(sdkName: string): Promise { + const sdkPrefix = `${sdkName}%`; const rows = await this.db .select() .from(TABLE) - .whereRaw(`sdk_version LIKE '??%'`, [sdkName]) + .whereLike('sdk_version', sdkPrefix) .orderBy('last_seen', 'desc'); return rows.map(mapRow); }