webamp/packages/skin-database/api/graphql/resolvers/FeedbackMutation.ts
Jordan Eldredge 9a12a61c08 Upgrade Grats and adopt new patterns
Summary:

Test Plan:
2024-12-15 22:39:16 -08:00

19 lines
368 B
TypeScript

import { Ctx } from "..";
/**
* Send a message to the admin of the site. Currently this appears in Discord.
* @gqlMutationField */
export async function send_feedback(
req: Ctx,
message: string,
email?: string | null,
url?: string | null
): Promise<boolean> {
req.notify({
type: "GOT_FEEDBACK",
url,
message,
email,
});
return true;
}