mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-07 11:22:35 +01:00
Merge pull request #173 from DiegoMagdaleno/master
[Fix] Fixes STR instead of JSON response and timestamps
This commit is contained in:
commit
7408faf8b7
@ -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);
|
||||
});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user