!isProfane(val);
const noProfanityMessage = "Profanity is not allowed";
-const countryCodesArray = c.registration.countries.map(countryObject => countryObject.code);
+const countryCodesArray = c.registration.countries.map(
+ (countryObject) => countryObject.code,
+);
export const RegisterFormValidator = z.object({
firstName: z
@@ -49,25 +51,25 @@ export const RegisterFormValidator = z.object({
z.literal("PREFERNOTSAY", defaultPrettyError),
]),
race: z.union([
- z.literal("Asian Indian",defaultPrettyError),
- z.literal("Asian (Other)",defaultPrettyError),
- z.literal("Black or African",defaultPrettyError),
- z.literal("Chinese",defaultPrettyError),
- z.literal("Filipino",defaultPrettyError),
- z.literal("Guamanian or Chamorro",defaultPrettyError),
- z.literal("Hispanic / Latino / Spanish Origin",defaultPrettyError),
- z.literal("Japanese",defaultPrettyError),
- z.literal("Korean",defaultPrettyError),
- z.literal("Middle Eastern",defaultPrettyError),
- z.literal("Native American or Alaskan Native",defaultPrettyError),
- z.literal("Native Hawaiian",defaultPrettyError),
- z.literal("Samoan",defaultPrettyError),
- z.literal("Vietnamese",defaultPrettyError),
- z.literal("White",defaultPrettyError),
- z.literal("Other Asian (Thai, Cambodian, etc)",defaultPrettyError),
- z.literal("Other Pacific Islander",defaultPrettyError),
- z.literal("Other",defaultPrettyError),
- z.literal("Prefer Not to Answer",defaultPrettyError),
+ z.literal("Asian Indian", defaultPrettyError),
+ z.literal("Asian (Other)", defaultPrettyError),
+ z.literal("Black or African", defaultPrettyError),
+ z.literal("Chinese", defaultPrettyError),
+ z.literal("Filipino", defaultPrettyError),
+ z.literal("Guamanian or Chamorro", defaultPrettyError),
+ z.literal("Hispanic / Latino / Spanish Origin", defaultPrettyError),
+ z.literal("Japanese", defaultPrettyError),
+ z.literal("Korean", defaultPrettyError),
+ z.literal("Middle Eastern", defaultPrettyError),
+ z.literal("Native American or Alaskan Native", defaultPrettyError),
+ z.literal("Native Hawaiian", defaultPrettyError),
+ z.literal("Samoan", defaultPrettyError),
+ z.literal("Vietnamese", defaultPrettyError),
+ z.literal("White", defaultPrettyError),
+ z.literal("Other Asian (Thai, Cambodian, etc)", defaultPrettyError),
+ z.literal("Other Pacific Islander", defaultPrettyError),
+ z.literal("Other", defaultPrettyError),
+ z.literal("Prefer Not to Answer", defaultPrettyError),
]),
ethnicity: z.union([
z.literal("Hispanic or Latino", defaultPrettyError),
@@ -165,7 +167,9 @@ export const RegisterFormValidator = z.object({
.refine(noProfanityValidator, noProfanityMessage),
profileDiscordName: z
.string()
- .max(40, { message: "Username should not be longer than 40 characters" }),
+ .max(40, {
+ message: "Username should not be longer than 40 characters",
+ }),
pronouns: z.string().min(1).max(15),
bio: z
.string()
diff --git a/packages/config/hackkit.config.ts b/packages/config/hackkit.config.ts
index d2d49e8b..ccfc1749 100644
--- a/packages/config/hackkit.config.ts
+++ b/packages/config/hackkit.config.ts
@@ -972,13 +972,8 @@ const publicRoutes = [
/^\/user\//,
"/404",
"/bugreport",
- "/faq"
+ "/faq",
];
export default c;
-export {
- defaultTheme,
- bucketResumeBaseUploadUrl,
- perms,
- publicRoutes,
-};
+export { defaultTheme, bucketResumeBaseUploadUrl, perms, publicRoutes };
diff --git a/packages/db/schema.ts b/packages/db/schema.ts
index 391c674f..02f79c5c 100644
--- a/packages/db/schema.ts
+++ b/packages/db/schema.ts
@@ -76,7 +76,9 @@ export const userCommonData = pgTable("user_common_data", {
skills: json("skills").notNull().$type().default([]),
profilePhoto: varchar("profile_photo", { length: 255 }).notNull(),
phoneNumber: varchar("phone_number", { length: 30 }).notNull(),
- countryOfResidence: varchar("country_of_residence", { length: 3 }).notNull(),
+ countryOfResidence: varchar("country_of_residence", {
+ length: 3,
+ }).notNull(),
// metadata
isFullyRegistered: boolean("is_fully_registered").notNull().default(false),