fixed cape upload
This commit is contained in:
parent
308c3b5479
commit
c96e728228
@ -135,7 +135,7 @@ async function uploadCape(fileObject, alias = null) {
|
|||||||
throw new DefaultError(409, "Cape already existing.")
|
throw new DefaultError(409, "Cape already existing.")
|
||||||
}
|
}
|
||||||
|
|
||||||
const finalPath = path.join(process.cwd(), "data/textures", `${hash}.png`)
|
const finalPath = path.join(process.cwd(), "data/textures", `${hash}`)
|
||||||
|
|
||||||
await fs.rename(fileObject.path, finalPath)
|
await fs.rename(fileObject.path, finalPath)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user