Skip to content

Commit

Permalink
fix: exclude only the internal field (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
floross committed Oct 28, 2021
1 parent 7f19d43 commit cae52f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type FormatUpdateData = (
export const formatData: Record<ResourceType, FormatUpdateData> = {
<<for Models model>> <<model camel>>: (data) => {
const formated = removeNullValue(data);
<<for model.fields internal and primary field>>
<<for model.fields internal field>>
delete formated.<<field camel>>
<<endfor>>
return formated;
Expand Down

0 comments on commit cae52f5

Please sign in to comment.