fix: add new fields on subscribe plan, and change status type to number in subscribe
This commit is contained in:
@@ -13,9 +13,19 @@ func (a *accessor) Update(spec subscribeplandomain.SubscribePlan) error {
|
||||
DoUpdates: clause.AssignmentColumns([]string{
|
||||
"name",
|
||||
"code",
|
||||
"length",
|
||||
"price",
|
||||
"status",
|
||||
"updated_at",
|
||||
}),
|
||||
}).Select("name", "code", "updated_at").Save(&spec).Error; err != nil {
|
||||
}).Select(
|
||||
"name",
|
||||
"code",
|
||||
"length",
|
||||
"price",
|
||||
"status",
|
||||
"updated_at",
|
||||
).Save(&spec).Error; err != nil {
|
||||
return fmt.Errorf("failed to update tag: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user