From 0c57a34325c5d4079db2b945ca069cee9f28af5d Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 9 Oct 2022 10:45:38 -0500 Subject: [PATCH] change protection for dropFields --- frontend/lib/api/base/base-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/lib/api/base/base-api.ts b/frontend/lib/api/base/base-api.ts index 1c9614e..c8da034 100644 --- a/frontend/lib/api/base/base-api.ts +++ b/frontend/lib/api/base/base-api.ts @@ -43,7 +43,7 @@ export class BaseAPI { * are present. This is useful for when you want to send a subset of fields to * the server like when performing an update. */ - dropFields(obj: T, keys: Array = []): T { + protected dropFields(obj: T, keys: Array = []): T { const result = { ...obj }; [...keys, "createdAt", "updatedAt"].forEach(key => { // @ts-ignore - we are checking for the key above