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:
@@ -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}`)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function out(msg) {
|
||||
async function out(msg) {
|
||||
var time = new Date().toISOString();
|
||||
console.log(`${time} - ${msg}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user