Skip to content

Commit

Permalink
update table names enum to reflect refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Oct 24, 2024
1 parent 8ef8c2b commit b0b58ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion booking-app/app/api/db/refactor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function POST(request: NextRequest) {
}

// 5. combine bookings and bookingStatus documents
const sourceBookingStatus = TableNames.BOOKING_STATUS;
const sourceBookingStatus = "bookingStatus";
const destinationBooking = TableNames.BOOKING;
res = await fetch(process.env.NEXT_PUBLIC_BASE_URL + "/api/db/merge", {
method: "POST",
Expand Down
4 changes: 2 additions & 2 deletions booking-app/components/src/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export const ACTIVE_SHEET_ID = "1MnWbn6bvNyMiawddtYYx0tRW4NMgvugl0I8zBO3sy68";

export enum TableNames {
ADMINS = "usersAdmin",
APPROVERS = "usersLiaison",
APPROVERS = "usersApprovers",
BANNED = "usersBanned",
BOOKING = "bookings",
BOOKING_TYPES = "bookingTypes",
DEPARTMENTS = "departments",
PAS = "usersPa",
POLICY = "policy",
RESOURCES = "resources",
SAFETY_TRAINING = "usersSafetyWhitelist",
SAFETY_TRAINING = "usersWhitelist",
SETTINGS = "settings",
}

Expand Down

0 comments on commit b0b58ce

Please sign in to comment.