mirror of
https://github.com/spacebarchat/server.git
synced 2026-09-16 23:25:05 +00:00
🐛 fix Event Emitter
This commit is contained in:
+1
-1
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user