Refactoring: Convert ActionName to enum
This commit is contained in:
parent
e12a8cc5eb
commit
c0917251d4
27 changed files with 123 additions and 111 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue