mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
NO IDEA IF THIS WORKS!!!
This commit is contained in:
parent
b029dc9e12
commit
df44249539
|
@ -31,6 +31,7 @@ app.use("/static/js",express.static("out/client"))
|
||||||
app.use(cookieParser())
|
app.use(cookieParser())
|
||||||
|
|
||||||
app.use("/auth",authRoutes)
|
app.use("/auth",authRoutes)
|
||||||
|
app.use("/admin",adminRoutes)
|
||||||
app.use("/files",fileApiRoutes)
|
app.use("/files",fileApiRoutes)
|
||||||
// funcs
|
// funcs
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ export default class Files {
|
||||||
// this code deletes the files from discord, btw
|
// this code deletes the files from discord, btw
|
||||||
// if need be, replace with job queue system
|
// if need be, replace with job queue system
|
||||||
|
|
||||||
if (!this.uploadChannel) {reject(); return}
|
if (ogf&&this.uploadChannel) {
|
||||||
for (let x of ogf.messageids) {
|
for (let x of ogf.messageids) {
|
||||||
this.uploadChannel.messages.fetch(x).then((m) => {
|
this.uploadChannel.messages.fetch(x).then((m) => {
|
||||||
m.delete()
|
m.delete()
|
||||||
|
@ -209,6 +209,7 @@ export default class Files {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
resolve(await this.writeFile(
|
resolve(await this.writeFile(
|
||||||
uploadId,
|
uploadId,
|
||||||
|
|
Loading…
Reference in a new issue