Compare commits
No commits in common. "93ccab7d42c109b1838915e0f27883c91f877b7d" and "621f6c906d9effc9a37a9c18696326d05fbb4e03" have entirely different histories.
93ccab7d42
...
621f6c906d
@ -23,7 +23,7 @@ func AddBundleExtendRecord(data model.BundleExtensionRecords) error {
|
||||
}
|
||||
if data.AvailableDurationAdditional != 0 && data.TimeUnit != 0 {
|
||||
record := model.BundleOrderRecords{}
|
||||
if err := tx.Model(&model.BundleOrderRecords{}).Where(&model.BundleOrderRecords{CustomerID: strconv.Itoa(data.UserId)}).Order("created_at desc").First(&record).Error; err != nil {
|
||||
if err := tx.Model(&model.BundleOrderRecords{}).Where(&model.BundleOrderRecords{CustomerID: strconv.Itoa(data.UserId)}).First(&record).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
var expireTime time.Time
|
||||
|
Loading…
Reference in New Issue
Block a user