clean code

This commit is contained in:
m5r 2021-09-03 05:46:56 +08:00
parent afd9cfb73b
commit 356fd8818c
2 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,7 @@ export const LoginForm = (props: LoginFormProps) => {
}
}}
>
<LabeledTextField name="email" label="Email" placeholder="Email" />
<LabeledTextField name="email" label="Email" placeholder="Email" type="email" />
<LabeledTextField name="password" label="Password" placeholder="Password" type="password" />
<div>
<Link href={Routes.ForgotPasswordPage()}>

View File

@ -1,4 +1,3 @@
import { getConfig } from "blitz";
import { Queue } from "quirrel/blitz";
import type twilio from "twilio";
import type { ApplicationInstance } from "twilio/lib/rest/api/v2010/account/application";
@ -11,8 +10,6 @@ type Payload = {
phoneNumberId: string;
};
const { serverRuntimeConfig } = getConfig();
const setTwilioWebhooks = Queue<Payload>("api/queue/set-twilio-webhooks", async ({ organizationId, phoneNumberId }) => {
const phoneNumber = await db.phoneNumber.findFirst({
where: { id: phoneNumberId, organizationId },