Skip to content

Commit

Permalink
🍱chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Nov 7, 2024
1 parent 6e2cc61 commit b9940fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,10 @@ async function main() {
await prisma.$executeRaw`SELECT setval('attachments_id_seq', (SELECT MAX(id) FROM "attachments") + 1);`
}
await Promise.all([fs.mkdir(UPLOAD_FILE_PATH), fs.mkdir(FAISS_PATH), fs.mkdir(DBBAKUP_PATH)])
ncp('prisma/seedfiles', UPLOAD_FILE_PATH,(err)=>{
console.log(err)
ncp('prisma/seedfiles', UPLOAD_FILE_PATH, (err) => {
if (err) {
console.log(err)
}
})
}

Expand Down

0 comments on commit b9940fe

Please sign in to comment.