Push draft of sftp reconcilation details

This commit is contained in:
DaneEveritt
2022-07-24 10:28:42 -04:00
parent 7bd11c1c28
commit 61baccb1a3
5 changed files with 165 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ func (a Activity) Save() error {
Debug("saving activity to database")
stmt := `INSERT INTO activity_logs(event, user_uuid, server_uuid, metadata, ip, timestamp) VALUES(?, ?, ?, ?, ?, ?)`
if _, err := sqlite.Instance().Exec(stmt, a.Event, a.User, a.Server, buf.Bytes(), a.IP, a.Timestamp); err != nil {
if _, err := sqlite.Instance().Exec(stmt, a.Event, a.User, a.Server, buf.Bytes(), a.IP, a.Timestamp.UTC().Unix()); err != nil {
return errors.WithStack(err)
}
return nil