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
|
// remove the tile from the disk
|
||||||
const finalFilePath = getPublicPath('objects', data.object + '.png')
|
const finalFilePath = getPublicPath('objects', data.object + '.png')
|
||||||
fs.unlink(finalFilePath, (err) => {
|
fs.unlink(finalFilePath, (err) => {
|
||||||
|
@ -34,7 +34,7 @@ export default class ObjectUpdateEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const object = await prisma.object.update({
|
await prisma.object.update({
|
||||||
where: {
|
where: {
|
||||||
id: data.id
|
id: data.id
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user