fixed inconsistent module loading with 'require'

This commit is contained in:
2025-10-24 02:49:27 +02:00
parent b035c9475d
commit f974684945

View File

@@ -3,8 +3,8 @@ import { db } from "./sql";
import { Event, type TEventEntityNew, type TGetEventsOptions } from "./component/event/events"; import { Event, type TEventEntityNew, type TGetEventsOptions } from "./component/event/events";
import { createPlaceholders, getTsNow, pad_l2 } from "./util"; import { createPlaceholders, getTsNow, pad_l2 } from "./util";
import { sendNotification } from "./sendNotification"; import { sendNotification } from "./sendNotification";
import minimist from "minimist";
const argv = require('minimist')(process.argv.slice(2)); const argv = minimist(process.argv.slice(2))
console.log("App started"); console.log("App started");
console.dir({argv}) console.dir({argv})