mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 13:36:25 -08:00
Quick fix
This commit is contained in:
parent
555fbd27b9
commit
d6dd7535f4
|
@ -15,7 +15,7 @@
|
|||
"author": "Etcetera (https://cetera.uk)",
|
||||
"license": "Unlicense",
|
||||
"engines": {
|
||||
"node": ">=v20"
|
||||
"node": ">=v21"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/node-server": "^1.8.2",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue