fix: replace uuid with crypto.randomUUID to fix ESM error in node 18
Build Curio HMS / build-and-deploy (push) Successful in 1m11s
Details
Build Curio HMS / build-and-deploy (push) Successful in 1m11s
Details
This commit is contained in:
parent
8ce707faa2
commit
0f2f598465
|
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||
const botLogic = require('./botLogic');
|
||||
const configManager = require('./configManager');
|
||||
const { getTemporalClient } = require('./temporalClient');
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
const crypto = require('crypto');
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ app.post('/api/ai/scribe/start', async (req, res) => {
|
|||
if (!dictation) return res.status(400).json({ error: 'Dictation is required' });
|
||||
|
||||
const temporalClient = await getTemporalClient();
|
||||
const jobId = `scribe-${uuidv4()}`;
|
||||
const jobId = `scribe-${crypto.randomUUID()}`;
|
||||
|
||||
console.log(`[AI Scribe] Starting job ${jobId} for dictation of length ${dictation.length}`);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue