Files
lst_v3/backend/utils/updateAppStats.utils.ts
Blake Matthes 3e8417dcff
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 3m54s
refactor(builds): refactored the build process to hold in the build info plus version
2026-06-18 13:51:17 -05:00

19 lines
362 B
TypeScript

import { db } from "../db/db.controller.js";
import { appStats } from "../db/schema/stats.schema.js";
export const updateAppStats = async (
data: Partial<typeof appStats.$inferInsert>,
) => {
console.log(data);
await db
.insert(appStats)
.values({
id: "primary",
...data,
})
.onConflictDoUpdate({
target: appStats.id,
set: data,
});
};