chore: Fixes somes command and migrate to ts (#7444)

**What**
Fix some commands that are using the loaders return unproperly and cleanup, also includes a migration to ts
This commit is contained in:
Adrien de Peretti
2024-05-24 16:17:58 +02:00
committed by GitHub
parent 7390821da5
commit d354b253d5
8 changed files with 56 additions and 103 deletions

View File

@@ -30,7 +30,7 @@ if (!IS_DEV) {
if (LOG_FILE) {
transports.push(
new winston.transports.File({
filename: LOG_FILE
filename: LOG_FILE,
})
)
}
@@ -172,7 +172,7 @@ export class Reporter {
* message to log the error under; or an error object.
* @param {Error?} error - an error object to log message with
*/
error = (messageOrError, error = null) => {
error = (messageOrError, error: any = null) => {
let message = messageOrError
if (typeof messageOrError === "object") {
message = messageOrError.message