Skip to content

Commit

Permalink
fix: Adjusted variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpineirocontentful committed Jan 23, 2025
1 parent 817960c commit 13a4ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/entities/function-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export function wrapFunctionLog(
makeRequest: MakeRequest,
data: FunctionLogProps
): FunctionLogProps & ReturnType<typeof createFunctionLogApi> {
const appAction = toPlainObject(copy(data))
const functionLog = toPlainObject(copy(data))

const appActionWithMethods = enhanceWithMethods(appAction, createFunctionLogApi(makeRequest))
const functionLogWithMethods = enhanceWithMethods(functionLog, createFunctionLogApi(makeRequest))

return freezeSys(appActionWithMethods)
return freezeSys(functionLogWithMethods)
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/entities/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export function wrapFunction(
makeRequest: MakeRequest,
data: FunctionProps
): FunctionProps & ReturnType<typeof createFunctionApi> {
const appAction = toPlainObject(copy(data))
const func = toPlainObject(copy(data))

const appActionWithMethods = enhanceWithMethods(appAction, createFunctionApi(makeRequest))
const funcWithMethods = enhanceWithMethods(func, createFunctionApi(makeRequest))

return freezeSys(appActionWithMethods)
return freezeSys(funcWithMethods)
}

/**
Expand Down

0 comments on commit 13a4ea6

Please sign in to comment.