We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d268ca commit c45a8e2Copy full SHA for c45a8e2
src/core/database/database.service.ts
@@ -160,10 +160,12 @@ export class DatabaseService {
160
const dbs = await session.executeWrite((tx) =>
161
tx.run('show databases yield *'),
162
);
163
- const version = (info.get('version') as string).split('.').map(Number);
+ const versionParts = (info.get('version') as string).split('.');
164
+ const version = versionParts.map(Number) as ServerInfo['version'];
165
+ const versionXY = Number(versionParts.slice(0, 2).join('.'));
166
return {
- version: version as ServerInfo['version'],
- versionXY: version[0] + version[1] / 10,
167
+ version,
168
+ versionXY,
169
edition: info.get('edition'),
170
databases: dbs.records.map((r) => ({
171
name: r.get('name'),
0 commit comments