feat(puchase hist): finished up purhcase historical / gp updates

This commit is contained in:
2026-04-09 21:12:43 -05:00
parent 8dfcbc5720
commit a691dc276e
22 changed files with 3686 additions and 12 deletions

View File

@@ -31,7 +31,9 @@ interface Data<T = unknown[]> {
| "post"
| "notification"
| "delete"
| "printing";
| "printing"
| "gpSql"
| "email";
level: "info" | "error" | "debug" | "fatal";
message: string;
room?: string;
@@ -63,13 +65,14 @@ export const returnFunc = (data: Data) => {
log.info({ notify: notify, room }, data.message);
break;
case "error":
log.error({ notify: notify, error: data.data, room }, data.message);
log.error({ notify: notify, stack: data.data ?? [], room }, data.message);
break;
case "debug":
log.debug({ notify: notify, room }, data.message);
log.debug({ notify: notify, stack: data.data ?? [], room }, data.message);
break;
case "fatal":
log.fatal({ notify: notify, room }, data.message);
log.fatal({ notify: notify, stack: data.data ?? [], room }, data.message);
}
// api section to return