File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " enspire " : patch
3
+ ---
4
+
5
+ bugfixes
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ async function download() {
132
132
// window.open(data)
133
133
downloadLink .value = data .url
134
134
downloadFilename .value = data .name
135
- dlink .value .click ()
135
+ nextTick (() => {
136
+ dlink .value .click ()
137
+ })
136
138
downloading .value = false
137
139
}
138
140
}
Original file line number Diff line number Diff line change
1
+ // TODO: this is a temporary solution to the error
2
+ // of occurrence of 'crypto not defined' in prod
3
+
4
+ export default defineNuxtPlugin ( ( ) => {
5
+ const crypto = require ( 'uncrypto' )
6
+ global . crypto = crypto
7
+ } )
Original file line number Diff line number Diff line change 1
1
import { PrismaClient } from '@prisma/client'
2
- import { v4 as uuidv4 } from 'uuid '
2
+ import { randomUUID } from 'uncrypto '
3
3
4
4
const prisma = new PrismaClient ( )
5
5
@@ -75,7 +75,7 @@ export default eventHandler(async (event) => {
75
75
}
76
76
}
77
77
catch ( error ) {
78
- const fileUUID = uuidv4 ( )
78
+ const fileUUID = randomUUID ( )
79
79
try {
80
80
await prisma . fileUploadRecord . create ( {
81
81
data : {
You can’t perform that action at this time.
0 commit comments