From b0b58ce766c01c80fb033348c19606bcd5f6cdd7 Mon Sep 17 00:00:00 2001 From: lucia <51058748+lucia-gomez@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:38:14 -0400 Subject: [PATCH] update table names enum to reflect refactor --- booking-app/app/api/db/refactor/route.ts | 2 +- booking-app/components/src/policy.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/booking-app/app/api/db/refactor/route.ts b/booking-app/app/api/db/refactor/route.ts index 3e6d9bf5..2595b41f 100644 --- a/booking-app/app/api/db/refactor/route.ts +++ b/booking-app/app/api/db/refactor/route.ts @@ -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", diff --git a/booking-app/components/src/policy.ts b/booking-app/components/src/policy.ts index 123902b0..3b0ade09 100644 --- a/booking-app/components/src/policy.ts +++ b/booking-app/components/src/policy.ts @@ -8,7 +8,7 @@ export const ACTIVE_SHEET_ID = "1MnWbn6bvNyMiawddtYYx0tRW4NMgvugl0I8zBO3sy68"; export enum TableNames { ADMINS = "usersAdmin", - APPROVERS = "usersLiaison", + APPROVERS = "usersApprovers", BANNED = "usersBanned", BOOKING = "bookings", BOOKING_TYPES = "bookingTypes", @@ -16,7 +16,7 @@ export enum TableNames { PAS = "usersPa", POLICY = "policy", RESOURCES = "resources", - SAFETY_TRAINING = "usersSafetyWhitelist", + SAFETY_TRAINING = "usersWhitelist", SETTINGS = "settings", }