bree icon indicating copy to clipboard operation
bree copied to clipboard

`undefined` is logged to console

Open hornta opened this issue 1 year ago • 0 comments
trafficstars

I'm getting the logs suffixed by undefined for a simple job and I guess it's not intended. What might that be?

backend:dev: Worker for job "syncRequisitions" online undefined
backend:dev: Im running in cronjob
backend:dev: Worker for job "syncRequisitions" exited with code 0 undefined
import Bree from "bree";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { ENV } from "./env.ts";

const bree = new Bree({
	root: path.join(path.dirname(fileURLToPath(import.meta.url)), "jobs"),
	defaultExtension: ENV.NODE_ENV === "development" ? "ts" : "js",
	jobs: [{ name: "syncRequisitions", cron: "* * * * *" }],
});

await bree.start();
console.log("Im running in cronjob");

I'm using version 9.2.4 of bree node v22.6.0

hornta avatar Aug 17 '24 08:08 hornta