File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ import {
79
79
getWithPageIDParamAndCoverPageIDSchema ,
80
80
} from "./validators/book.js" ;
81
81
import BookService from "./services/book-service.js" ;
82
+ import { randomUUID } from "crypto" ;
82
83
83
84
const BOOK_PROJECTION : Partial < Record < keyof BookInterface , number > > = {
84
85
_id : 0 ,
@@ -2332,7 +2333,7 @@ async function batchGenerateAIMetadata(
2332
2333
: "tags" ;
2333
2334
2334
2335
const job : ProjectBookBatchUpdateJob = {
2335
- jobID : crypto . randomUUID ( ) ,
2336
+ jobID : randomUUID ( ) ,
2336
2337
type : jobType ,
2337
2338
status : "pending" ,
2338
2339
dataSource : "generated" ,
@@ -2437,7 +2438,7 @@ async function batchUpdateBookMetadata(
2437
2438
}
2438
2439
2439
2440
const job : ProjectBookBatchUpdateJob = {
2440
- jobID : crypto . randomUUID ( ) ,
2441
+ jobID : randomUUID ( ) ,
2441
2442
type : "summaries+tags" , // Default to summaries+tags for user data source
2442
2443
status : "pending" ,
2443
2444
dataSource : "user" ,
You can’t perform that action at this time.
0 commit comments