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