summary refs log tree commit diff stats
path: root/svc/sqlite.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
commit37142b5d78d2eace9fef79d20793b0d42965dae5 (patch)
tree3c0c93fc5daba9916cf00d9dfce1007927694f8f /svc/sqlite.go
parent75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff)
downloadgetwtxt-37142b5d78d2eace9fef79d20793b0d42965dae5.tar.gz
updated internal functionality for registry v0.4.0 v0.4.4
Diffstat (limited to 'svc/sqlite.go')
-rw-r--r--svc/sqlite.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/svc/sqlite.go b/svc/sqlite.go
index 8a7b1a4..c9a9f5a 100644
--- a/svc/sqlite.go
+++ b/svc/sqlite.go
@@ -58,7 +58,7 @@ func (lite *dbSqlite) push() error {
 
 		_, err = txst.Exec(i, true, "nickname", e.Nick)
 		errLog("", err)
-		_, err = txst.Exec(i, true, "rlen", e.RLen)
+		_, err = txst.Exec(i, true, "lastmodified", e.LastModified)
 		errLog("", err)
 		_, err = txst.Exec(i, true, "uip", e.IP)
 		errLog("", err)
@@ -122,8 +122,8 @@ func (lite *dbSqlite) pull() {
 			user.IP = net.ParseIP(string(dBlob))
 		case "date":
 			user.Date = string(dBlob)
-		case "rlen":
-			user.RLen = string(dBlob)
+		case "lastmodified":
+			user.LastModified = string(dBlob)
 		default:
 			thetime, err := time.Parse(time.RFC3339, dataKey)
 			errLog("While pulling statuses from SQLite: ", err)