mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36: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("/auth",authRoutes)
|
||||
app.use("/admin",adminRoutes)
|
||||
app.use("/files",fileApiRoutes)
|
||||
// funcs
|
||||
|
||||
|
|
|
@ -201,13 +201,14 @@ export default class Files {
|
|||
// this code deletes the files from discord, btw
|
||||
// if need be, replace with job queue system
|
||||
|
||||
if (!this.uploadChannel) {reject(); return}
|
||||
for (let x of ogf.messageids) {
|
||||
this.uploadChannel.messages.fetch(x).then((m) => {
|
||||
m.delete()
|
||||
}).catch((e) => {
|
||||
console.error(e)
|
||||
})
|
||||
if (ogf&&this.uploadChannel) {
|
||||
for (let x of ogf.messageids) {
|
||||
this.uploadChannel.messages.fetch(x).then((m) => {
|
||||
m.delete()
|
||||
}).catch((e) => {
|
||||
console.error(e)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
resolve(await this.writeFile(
|
||||
|
|
Loading…
Reference in a new issue