Skip to content

Commit

Permalink
Spelling corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmccartney committed Nov 30, 2023
1 parent d7ea427 commit 331acfe
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/models/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ exports.get = async function (filter) {

exports.pagination = async function (
filter = {},
sort = { feild: "timestamp", direction: "asc" },
sort = { field: "timestamp", direction: "asc" },
pageNumber = 1,
nPerPage = 25
) {
try {
const logsCollection = await mongoCollection("logs");

const sortObject = {};
sortObject[sort.feild] = sort.direction === "asc" ? 1 : -1;
sortObject[sort.field] = sort.direction === "asc" ? 1 : -1;

if (logsCollection) {
const result = await logsCollection
Expand Down
2 changes: 1 addition & 1 deletion src/modules/dante-router/container/workers/worker-ddm.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const main = async () => {
receiversCollection = await mongoCollection("receivers");

// Kick things off
console.log(`worker-ddm: connecting to domain manger at ${workerData.address}`);
console.log(`worker-ddm: connecting to domain manager at ${workerData.address}`);

while (true) {
// poll occasionally
Expand Down
2 changes: 1 addition & 1 deletion src/modules/exterity/container/config/panel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"needsConfigured": false,
"title": "",
"module": "exterity",
"description": "Channel list server and device manger for exterity STBs",
"description": "Channel list server and device manager for exterity STBs",
"enabled": false,
"channels": {},
"devices": {}
Expand Down
21 changes: 15 additions & 6 deletions src/modules/exterity/module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "exterity",
"longname": "Exterity STB",
"description": "Channel list server and device manger for exterity STBs",
"description": "Channel list server and device manager for exterity STBs",
"capabilities": [],
"notes": "",
"version": "1.0.1",
Expand All @@ -10,18 +10,27 @@
"license": "Apache-2.0",
"status": "stable",
"needsContainer": true,
"devmounts": ["api", "services", "utils", "workers"],
"protectedRoutes": ["config"],
"publicRoutes": ["/channel-list/*"],
"devmounts": [
"api",
"services",
"utils",
"workers"
],
"protectedRoutes": [
"config"
],
"publicRoutes": [
"/channel-list/*"
],
"defaultconfig": {
"id": "",
"order": 0,
"needsConfigured": false,
"title": "",
"module": "exterity",
"description": "Channel list server and device manger for exterity STBs",
"description": "Channel list server and device manager for exterity STBs",
"enabled": false,
"channels": {},
"devices": {}
}
}
}
2 changes: 1 addition & 1 deletion src/services/system-logs-paginated.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = async (sortField = null, sortDirection = "asc", filters = {}, p

const logs = await logsModel.pagination(
dbFilters,
{ feild: sortField, direction: sortDirection },
{ field: sortField, direction: sortDirection },
pageNumber,
numberPerPage
);
Expand Down

0 comments on commit 331acfe

Please sign in to comment.