mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
Bug fixed the new collision check
Geez.
This commit is contained in:
parent
e0901baa8b
commit
50dc747984
@ -201,7 +201,7 @@ self.getUniqueRandomName = async (length, extension) => {
|
||||
self.onHold.add(identifier)
|
||||
|
||||
const file = await db.table('files')
|
||||
.where('name', 'like', 'identifier.%')
|
||||
.whereRaw('?? like ?', ['name', `${identifier}.%`])
|
||||
.select('id')
|
||||
.first()
|
||||
if (file) {
|
||||
|
Loading…
Reference in New Issue
Block a user