Skip to content

Commit 9c74db2

Browse files
committed
wip: fixes
[ci skip]
1 parent 4fe0fb1 commit 9c74db2

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

src/PolykeyClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface PolykeyClient extends CreateDestroyStartStop {}
2424
)
2525
class PolykeyClient {
2626
static async createPolykeyClient({
27-
nodePath = config.defaults.nodePath,
27+
nodePath = config.defaultsUser.nodePath,
2828
session,
2929
rpcClientClient,
3030
streamFactory,

src/bootstrap/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { PasswordMemLimit, PasswordOpsLimit } from '../keys/types';
44
import path from 'path';
55
import Logger from '@matrixai/logger';
66
import { DB } from '@matrixai/db';
7-
import { CertManager } from '@/keys';
87
import * as bootstrapErrors from './errors';
98
import TaskManager from '../tasks/TaskManager';
109
import { IdentitiesManager } from '../identities';
@@ -14,7 +13,7 @@ import { Schema } from '../schema';
1413
import { Sigchain } from '../sigchain';
1514
import { ACL } from '../acl';
1615
import { GestaltGraph } from '../gestalts';
17-
import { KeyRing } from '../keys';
16+
import { KeyRing, CertManager } from '../keys';
1817
import { NodeGraph, NodeManager } from '../nodes';
1918
import { VaultManager } from '../vaults';
2019
import { NotificationsManager } from '../notifications';

src/utils/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,7 @@ function filterEmptyObject(o) {
118118
]);
119119
}
120120

121-
function filterObject<
122-
T extends Record<K, V>,
123-
K extends string,
124-
V extends unknown,
125-
>(
121+
function filterObject<T extends Record<K, V>, K extends string, V>(
126122
obj: T,
127123
f: (element: [K, V], index: number, arr: Array<[K, V]>) => boolean,
128124
): Partial<T> {

src/validation/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ function parsePort(data: any, connect: boolean = false): Port {
234234
}
235235

236236
function parseNetwork(data: any): SeedNodes {
237-
if (typeof data !== 'string' || !(data in config.defaults.network)) {
237+
if (typeof data !== 'string' || !(data in config.network)) {
238238
throw new validationErrors.ErrorParse(
239-
`Network must be one of ${Object.keys(config.defaults.network).join(
239+
`Network must be one of ${Object.keys(config.network).join(
240240
', ',
241241
)}`,
242242
);
243243
}
244-
return config.defaults.network[data];
244+
return config.network[data];
245245
}
246246

247247
/**

0 commit comments

Comments
 (0)