mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 23:34:59 -05:00
fix(www): not zero, silly
This commit is contained in:
parent
e9942057ce
commit
0f7a5e6ffb
@ -31,13 +31,13 @@
|
|||||||
import type { OnlineServer } from "@/lib/types/mh-server";
|
import type { OnlineServer } from "@/lib/types/mh-server";
|
||||||
import { Inngest } from "inngest";
|
import { Inngest } from "inngest";
|
||||||
import { serve } from "inngest/next";
|
import { serve } from "inngest/next";
|
||||||
import { Document, MongoClient, ObjectId, WithId } from "mongodb";
|
import { MongoClient } from "mongodb";
|
||||||
import {createReportIssue} from "@/lib/linear";
|
import { createReportIssue } from "@/lib/linear";
|
||||||
|
|
||||||
// Create a client to send and receive events
|
// Create a client to send and receive events
|
||||||
export const inngest = new Inngest({ id: "mhsf" });
|
export const inngest = new Inngest({ id: "mhsf" });
|
||||||
|
|
||||||
// Create an API that serves zero functions
|
// Create an API that serves zero (not zero, silly) functions
|
||||||
export default serve({
|
export default serve({
|
||||||
client: inngest,
|
client: inngest,
|
||||||
functions: [
|
functions: [
|
||||||
@ -46,9 +46,13 @@ export default serve({
|
|||||||
{ event: "report-server" },
|
{ event: "report-server" },
|
||||||
async ({ event, step }) => {
|
async ({ event, step }) => {
|
||||||
// by the way, I bombed the Discord stuff
|
// by the way, I bombed the Discord stuff
|
||||||
await createReportIssue(event.data.server, event.data.reason, event.data.userId);
|
await createReportIssue(
|
||||||
|
event.data.server,
|
||||||
|
event.data.reason,
|
||||||
|
event.data.userId,
|
||||||
|
);
|
||||||
|
|
||||||
return { event, body: "Done" }
|
return { event, body: "Done" };
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
inngest.createFunction(
|
inngest.createFunction(
|
||||||
@ -121,5 +125,3 @@ export default serve({
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user