🐛 fix Event Emitter

This commit is contained in:
Flam3rboy
2021-02-22 08:21:32 +01:00
parent 762b66d50d
commit 5a505f331a
5 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Event, EventModel } from "fosscord-server-util";
export async function emitEvent(payload: Omit<Event, "created_at">) {
const emitEvent = {
created_at: Math.floor(Date.now() / 1000), // in seconds
created_at: new Date(), // in seconds
...payload,
};