Skip to content

Commit

Permalink
Remove unused field in Opportunities; use table ID instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul committed Oct 31, 2024
1 parent ae76361 commit c61e650
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/data/opportunity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
array,
boolean,
field,
optional,
record,
Expand All @@ -15,7 +14,6 @@ import {
decodeValidItemsFromArray,
markdown,
takeFirst,
withDefault,
} from "~/src/decoding";

import { appBase, unwrapRecords } from "./airtable";
Expand All @@ -38,7 +36,6 @@ export const decodeOpportunity = record({
contactUrl: field("RSVP URL", decodeUrl),
coverImageUrl: field("Cover URL", optional(string)),
skills: field("Skills", decodeSkills),
juniorFriendly: field("Junior Friendly", withDefault(boolean, false)),
status: field("Status", union("draft", "live", "unlisted")),
creationTime: field("Created Time", string),
});
Expand All @@ -48,7 +45,7 @@ export const decodeOpportunity = record({
//

/** Opportunities table */
export const opportunitiesTable = appBase("Opportunities");
export const opportunitiesTable = appBase("tblRGYoOWBeh6B5h5");

/** Get all opportunities */
export async function getAllOpportunities(
Expand Down

0 comments on commit c61e650

Please sign in to comment.