Skip to content

Commit 850b328

Browse files
authored
Improvements to code structure - Test for gifting redemption (#225)
1 parent 368aa5c commit 850b328

103 files changed

Lines changed: 897 additions & 37 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ module.exports = {
7878
{ blankLine: "always", prev: "try", next: "*" },
7979
{ blankLine: "always", prev: "*", next: "function" },
8080
{ blankLine: "always", prev: "function", next: "*" },
81+
{ blankLine: "always", prev: "export", next: "*" },
82+
{ blankLine: "always", prev: "*", next: "expression" },
83+
{ blankLine: "always", prev: "*", next: "export" },
8184
{
8285
blankLine: "always",
8386
prev: "import",

emails/templates/iacamp/postulation-with-team.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ export const AIHackathonPostulationWithTeamEmail = ({ name }: Props) => {
4040
selección.
4141
</Text>
4242

43-
<Text className="text-xl mb-8">
44-
¡Éxitos en la postulación!
45-
</Text>
43+
<Text className="text-xl mb-8">¡Éxitos en la postulación!</Text>
4644

4745
<Text className="text-xl">
4846
Un saludo,

emails/templates/iacamp/waitlist.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ export const IACampWaitlist = ({ nombre }: AddedToWaitlist) => {
4444
</Text>
4545

4646
<Text className="text-center mb-8">
47-
<Button
48-
href="https://www.youtube.com/live/RSNRrqbLR84?si=DnG257y3MyWDppbi"
49-
className="bg-blue-800 py-4 px-6 rounded-md text-gray-200 self-center"
50-
target="_blank"
51-
>
52-
Entrar al Webinar
53-
</Button>
47+
<Button
48+
href="https://www.youtube.com/live/RSNRrqbLR84?si=DnG257y3MyWDppbi"
49+
className="bg-blue-800 py-4 px-6 rounded-md text-gray-200 self-center"
50+
target="_blank"
51+
>
52+
Entrar al Webinar
53+
</Button>
5454
</Text>
5555

5656
<Text className="text-xl mb-8">
@@ -61,7 +61,10 @@ export const IACampWaitlist = ({ nombre }: AddedToWaitlist) => {
6161
para no olvidarlo.
6262
</Text>
6363

64-
<Text className="text-xl">Un saludo,<br/> Equipo CommunityOS</Text>
64+
<Text className="text-xl">
65+
Un saludo,
66+
<br /> Equipo CommunityOS
67+
</Text>
6568
<Text className="text-xl mb-8"></Text>
6669
</Section>
6770
<Hr className="my-8" />

src/builder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const builder = new SchemaBuilder<{
3535
});
3636

3737
builder.queryType({});
38+
3839
builder.mutationType({});
40+
3941
builder.addScalarType("Date", DateResolver, {});
42+
4043
builder.addScalarType("DateTime", DateTimeResolver, {});

src/datasources/db/allowedCurrencies.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const allowedCurrencySchema = pgTable("allowed_currencies", {
1818
export const selectAllowedCurrencySchema = createSelectSchema(
1919
allowedCurrencySchema,
2020
);
21+
2122
export const insertAllowedCurrencySchema = createInsertSchema(
2223
allowedCurrencySchema,
2324
);

src/datasources/db/communities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const communityRelations = relations(communitySchema, ({ many }) => ({
3434
}));
3535

3636
export const selectCommunitySchema = createSelectSchema(communitySchema);
37+
3738
export const insertCommunitySchema = createInsertSchema(communitySchema, {
3839
name: (schema) => schema.name.min(2).max(64),
3940
});

src/datasources/db/companies.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { salariesSchema, workEmailSchema } from "./schema";
66
import { createdAndUpdatedAtFields } from "./shared";
77

88
const companiesStatusEnum = ["active", "inactive", "draft"] as const;
9+
910
// COMPANIES-TABLE
1011
export const companiesSchema = pgTable("companies", {
1112
id: uuid("id").primaryKey().notNull().defaultRandom(),
@@ -24,4 +25,5 @@ export const companiesRelations = relations(companiesSchema, ({ many }) => ({
2425
}));
2526

2627
export const selectCompaniesSchema = createSelectSchema(companiesSchema);
28+
2729
export const insertCompaniesSchema = createInsertSchema(companiesSchema);

src/datasources/db/confirmationToken.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const confirmationTokenRelations = relations(
5555
export const selectConfirmationTokenSchema = createSelectSchema(
5656
confirmationTokenSchema,
5757
);
58+
5859
export const insertConfirmationTokenSchema = createInsertSchema(
5960
confirmationTokenSchema,
6061
);

src/datasources/db/events.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { createdAndUpdatedAtFields } from "./shared";
1111

1212
export const eventStatusEnum = ["active", "inactive"] as const;
13+
1314
export const eventVisibilityEnum = ["public", "private", "unlisted"] as const;
1415

1516
// EVENTS-TABLE
@@ -46,7 +47,9 @@ export const eventsRelations = relations(eventsSchema, ({ many }) => ({
4647
}));
4748

4849
export const selectEventsSchema = createSelectSchema(eventsSchema);
50+
4951
export const insertEventsSchema = createInsertSchema(eventsSchema);
52+
5053
export const updateEventsSchema = insertEventsSchema.pick({
5154
name: true,
5255
description: true,

src/datasources/db/eventsCommunities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const eventsToCommunitiesRelations = relations(
4242
export const selectEventsToCommunitiesSchema = createSelectSchema(
4343
eventsToCommunitiesSchema,
4444
);
45+
4546
export const insertEventsToCommunitiesSchema = createInsertSchema(
4647
eventsToCommunitiesSchema,
4748
);

0 commit comments

Comments
 (0)