Minor improvements

This commit is contained in:
Dennis Postma 2024-11-13 15:34:43 +01:00
parent 719c75616e
commit 86ed3ae4b0
2 changed files with 1 additions and 4 deletions

View File

@ -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) => {

View File

@ -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
}, },