Refactoring: Convert ActionName to enum

This commit is contained in:
Henry Mercer 2024-02-29 11:29:32 +00:00
parent e12a8cc5eb
commit c0917251d4
27 changed files with 123 additions and 111 deletions

View file

@ -19,6 +19,7 @@ import {
sendStatusReport,
createStatusReportBase,
getActionsStatus,
ActionName,
} from "./status-report";
import {
checkDiskUsage,
@ -76,7 +77,7 @@ async function runWrapper() {
await sendStatusReport(
await createStatusReportBase(
"init-post",
ActionName.InitPost,
getActionsStatus(error),
startedAt,
config,
@ -89,7 +90,7 @@ async function runWrapper() {
return;
}
const statusReportBase = await createStatusReportBase(
"init-post",
ActionName.InitPost,
"success",
startedAt,
config,