Quick fix

This commit is contained in:
May 2024-03-09 14:34:00 -08:00
parent 555fbd27b9
commit d6dd7535f4
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@
"author": "Etcetera (https://cetera.uk)",
"license": "Unlicense",
"engines": {
"node": ">=v20"
"node": ">=v21"
},
"dependencies": {
"@hono/node-server": "^1.8.2",

View file

@ -435,7 +435,7 @@ export class UploadStream extends Writable {
}
delete this.files.locks[this.uploadId!]
await this.files.api.deleteMessages(ogf.messageids)
if (ogf?.messageids) await this.files.api.deleteMessages(ogf.messageids)
await this.files.write()
if (this.owner) Accounts.files.index(this.owner, this.uploadId!)
return this.uploadId