mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 07:06:25 -08:00
Quick fix
This commit is contained in:
parent
555fbd27b9
commit
d6dd7535f4
|
@ -15,7 +15,7 @@
|
||||||
"author": "Etcetera (https://cetera.uk)",
|
"author": "Etcetera (https://cetera.uk)",
|
||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=v20"
|
"node": ">=v21"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hono/node-server": "^1.8.2",
|
"@hono/node-server": "^1.8.2",
|
||||||
|
|
|
@ -435,7 +435,7 @@ export class UploadStream extends Writable {
|
||||||
}
|
}
|
||||||
|
|
||||||
delete this.files.locks[this.uploadId!]
|
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()
|
await this.files.write()
|
||||||
if (this.owner) Accounts.files.index(this.owner, this.uploadId!)
|
if (this.owner) Accounts.files.index(this.owner, this.uploadId!)
|
||||||
return this.uploadId
|
return this.uploadId
|
||||||
|
|
Loading…
Reference in a new issue