Removed unneccesary vars and added notes for tidyup

in preparation for testing additional info

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-02-16 10:39:19 +00:00
parent 2326a97d35
commit b1940bcfbb
5 changed files with 17 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ async function checkCrs(input){
return result
}
async function cleanMessages(input){
async function cleanMessages(input){ // Needs to be moved to the frontend `ensureArray() func`
var out = []
if (typeof input.message == "string") {
out.push(await san.cleanNrcc(input.message))
@@ -24,7 +24,7 @@ async function cleanMessages(input){
}
// Accepts an object but not an Array and returns it wrapped in an array.
async function cleanServices(input){
async function cleanServices(input){ // Need to triple check but I don't think this is used anymore.
var out = []
if (!Array.isArray(input)) {
log.out(`ldbUtils.cleanServices: Transforming input: ${input}`)

View File

@@ -1,4 +1,4 @@
function out(msg) {
async function out(msg) {
var time = new Date().toISOString();
console.log(`${time} - ${msg}`)
}