Skip to content

Commit

Permalink
Replace 'assert' with 'with' in the event service code
Browse files Browse the repository at this point in the history
  • Loading branch information
subs1stem committed May 20, 2024
1 parent 65aee7b commit 48441b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/services/event/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from "./config.json" assert { type: "json" };
import spamWords from "./spamwords.json" assert { type: "json" };
import config from "./config.json" with { type: "json" };
import spamWords from "./spamwords.json" with { type: "json" };

import {
AkuvoxService,
Expand Down
2 changes: 1 addition & 1 deletion server/services/event/services/base/SyslogService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import syslogServer from "syslog-server";
import { API, getTimestamp, isIpAddress, parseSyslogMessage } from "../../utils/index.js";
import config from "../../config.json" assert { type: "json" };
import config from "../../config.json" with { type: "json" };

const { topology } = config;
const natEnabled = topology?.nat === true;
Expand Down
2 changes: 1 addition & 1 deletion server/services/event/utils/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";
import https from "https";
import { getTimestamp } from "./index.js";
import { EVENT } from "../constants.js";
import config from "../config.json" assert { type: "json" };
import config from "../config.json" with { type: "json" };

const { api: { internal }, clickhouse } = config;
const agent = new https.Agent({ rejectUnauthorized: false });
Expand Down

0 comments on commit 48441b2

Please sign in to comment.