Skip to content

Commit

Permalink
update integrity comments
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed May 18, 2024
1 parent b9ba59e commit 9979992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scaffold/entry_type/integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub fn render_entry_definition_file(

let validate_update_result = if crud.update {
quote! {
/// TODO: add the appropriate validation rules
Ok(ValidateCallbackResult::Valid)
}
} else {
Expand All @@ -72,7 +73,6 @@ pub fn render_entry_definition_file(
};

let validate_update = quote! {
/// TODO: add the appropriate validation rules
pub fn #validate_update_fn(
_action: Update,
#new_entry_arg: #name_pascal,
Expand All @@ -90,6 +90,7 @@ pub fn render_entry_definition_file(

let validate_delete_result = if crud.update {
quote! {
/// TODO: add the appropriate validation rules
Ok(ValidateCallbackResult::Valid)
}
} else {
Expand All @@ -99,7 +100,6 @@ pub fn render_entry_definition_file(
};

let validate_delete = quote! {
/// TODO: add the appropriate validation rules
pub fn #validate_delete_fn(
_action: Delete,
_original_action: EntryCreationAction,
Expand Down

0 comments on commit 9979992

Please sign in to comment.