mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-23 05:47:59 -05:00
16 lines
305 B
TypeScript
16 lines
305 B
TypeScript
import { db } from '@/db'
|
|
import { workflowLogs } from '@/db/schema'
|
|
|
|
export interface LogEntry {
|
|
id: string
|
|
workflowId: string
|
|
executionId: string
|
|
level: string
|
|
message: string
|
|
createdAt: Date
|
|
}
|
|
|
|
export async function persistLog(log: LogEntry) {
|
|
await db.insert(workflowLogs).values(log)
|
|
}
|