Skip to content

Commit

Permalink
fix(models): fill in OffensiveSecurityTime (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Jun 21, 2021
1 parent aab5776 commit 7c39792
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions models/exploit.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package models

import (
"database/sql/driver"
"time"
)

Expand Down Expand Up @@ -129,3 +130,14 @@ func (date *OffensiveSecurityTime) UnmarshalCSV(csv string) (err error) {
}
return nil
}

// Scan :
func (date *OffensiveSecurityTime) Scan(value interface{}) error {
date.Time = value.(time.Time)
return nil
}

// Value :
func (date OffensiveSecurityTime) Value() (driver.Value, error) {
return date.Time, nil
}

0 comments on commit 7c39792

Please sign in to comment.