Skip to content

Commit

Permalink
fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CDeltakai committed Feb 26, 2025
1 parent 267d872 commit 4ce1674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/nodes/agent/handlers/NodesAuditEventsGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type Audit from '../../../audit/Audit';
import type { AuditEvent } from '../../../audit/types';
import { ServerHandler } from '@matrixai/rpc';
import * as auditUtils from '../../../audit/utils';
import { AuditEventId } from '@/ids';
import { AuditEventId } from '../../../ids';

/**
* Gets audit events from a node
Expand Down
5 changes: 2 additions & 3 deletions tests/nodes/agent/handlers/nodesAuditsGet.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { AuditEventId } from '@/ids';
import fc from 'fast-check';
import type NodeConnectionManager from '@/nodes/NodeConnectionManager';
import type Discovery from '@/discovery/Discovery';
import fs from 'fs';
import path from 'path';
import os from 'os';
import fc from 'fast-check';
import Logger, { LogLevel, StreamHandler } from '@matrixai/logger';
import { QUICClient, QUICServer, events as quicEvents } from '@matrixai/quic';
import { DB } from '@matrixai/db';
Expand Down Expand Up @@ -322,8 +322,7 @@ function generateMockAuditEvents(

//Pick some value to seek from the mockAuditEvents selected from the mockAuditEvents
let seekIndex = 50;
let seekValueEncoded = auditUtils.encodeAuditEventId(mockAuditEvents[seekIndex].id);

let seekValueEncoded = auditUtils.encodeAuditEventId(mockAuditEvents[seekIndex].id);

try {
const response = await rpcClient.methods.nodesAuditEventsGet({
Expand Down

0 comments on commit 4ce1674

Please sign in to comment.