Minor improvements
This commit is contained in:
parent
719c75616e
commit
86ed3ae4b0
@ -35,9 +35,6 @@ export default class ObjectRemoveEvent {
|
||||
}
|
||||
})
|
||||
|
||||
// get root path
|
||||
const public_folder = getPublicPath('objects')
|
||||
|
||||
// remove the tile from the disk
|
||||
const finalFilePath = getPublicPath('objects', data.object + '.png')
|
||||
fs.unlink(finalFilePath, (err) => {
|
||||
|
@ -34,7 +34,7 @@ export default class ObjectUpdateEvent {
|
||||
}
|
||||
|
||||
try {
|
||||
const object = await prisma.object.update({
|
||||
await prisma.object.update({
|
||||
where: {
|
||||
id: data.id
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user