summary refs log tree commit diff
diff options
context:
space:
mode:
authorDiego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com>2021-07-21 14:49:14 -0500
committerGitHub <noreply@github.com>2021-07-21 14:49:14 -0500
commit7408faf8b7506585128a9bdd76bc51e713c340c8 (patch)
treee4bcb0965570cf63669a77c6edf073bd8b4d579f
parentfix guild create (diff)
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-7408faf8b7506585128a9bdd76bc51e713c340c8.tar.xz
Merge pull request #173 from DiegoMagdaleno/master
[Fix] Fixes STR instead of JSON response and timestamps
-rw-r--r--src/routes/channels/#channel_id/messages/index.ts2
-rw-r--r--src/start.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/channels/#channel_id/messages/index.ts b/src/routes/channels/#channel_id/messages/index.ts

index 053a2a02..4e42d546 100644 --- a/src/routes/channels/#channel_id/messages/index.ts +++ b/src/routes/channels/#channel_id/messages/index.ts
@@ -126,7 +126,7 @@ router.post("/", messageUpload.single("file"), async (req: Request, res: Respons const embeds = []; if (body.embed) embeds.push(body.embed); - const data = await sendMessage({ ...body, type: 0, pinned: false, author_id: req.user_id, embeds, channel_id, attachments }); + const data = await sendMessage({ ...body, type: 0, pinned: false, author_id: req.user_id, embeds, channel_id, attachments, edited_timestamp: null }); return res.send(data); }); diff --git a/src/start.ts b/src/start.ts
index d799c190..b2ba9e65 100644 --- a/src/start.ts +++ b/src/start.ts
@@ -5,6 +5,7 @@ import "missing-native-js-functions"; import { config } from "dotenv"; config(); import { FosscordServer } from "./Server"; +console.log(process.env.MONGO_URL) import cluster from "cluster"; import os from "os"; const cores = Number(process.env.threads) || os.cpus().length;