pre-dev: update flow for lib vs case

This commit is contained in:
2025-08-11 11:46:32 +07:00
parent ee9b4a9035
commit ae524c8c47
3 changed files with 31 additions and 24 deletions
@@ -14,7 +14,7 @@ func ModifInput(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
// a sampel of utilizing transaction
func CheckData(input *e.Createdto, data *e.Single, tx *gorm.DB) error {
tx.Where("name = ?", input.Name)
tx.Where("Name = ?", input.Name)
input.Name = "Prefix_" + input.Name
return nil
}