Feature: Migrate to Typescript7 & AdonisJs7
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { cuid } from '@adonisjs/core/helpers'
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { posix } from 'node:path'
|
||||
|
||||
export interface FileNameMeta {
|
||||
@@ -74,7 +74,7 @@ export default class PathService {
|
||||
counter++
|
||||
|
||||
if (counter > 5) {
|
||||
newName = `${cuid()}${ext}`
|
||||
newName = `${randomUUID()}${ext}`
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user