♻️ Export bot-engine code into its own package
This commit is contained in:
11
packages/bot-engine/logs/saveErrorLog.ts
Normal file
11
packages/bot-engine/logs/saveErrorLog.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { saveLog } from './saveLog'
|
||||
|
||||
export const saveErrorLog = ({
|
||||
resultId,
|
||||
message,
|
||||
details,
|
||||
}: {
|
||||
resultId: string | undefined
|
||||
message: string
|
||||
details?: unknown
|
||||
}) => saveLog({ status: 'error', resultId, message, details })
|
||||
Reference in New Issue
Block a user