mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
* ci: pull version from package.json on build * fix: implicit any type * feat: inital support for logger * style: fix lint * feat: move more logging over to pino * fix: logging around company importing
11 lines
226 B
TypeScript
11 lines
226 B
TypeScript
import type { TaskLog } from "~/server/internal/tasks";
|
|
|
|
export function parseTaskLog(logStr: string): typeof TaskLog.infer {
|
|
const log = JSON.parse(logStr);
|
|
|
|
return {
|
|
message: log.msg,
|
|
timestamp: log.time,
|
|
};
|
|
}
|