tangled
alpha
login
or
join now
tjh.dev
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
use epoch time in pubkeys table too
oppi.li
1 year ago
d8e5b7f8
a713694d
+6
-2
1 changed file
expand all
collapse all
unified
split
appview
db
pubkeys.go
+6
-2
appview/db/pubkeys.go
···
32
32
33
33
for rows.Next() {
34
34
var publicKey PublicKey
35
35
-
if err := rows.Scan(&publicKey.Key, &publicKey.Name, &publicKey.DID, &publicKey.Created); err != nil {
35
35
+
var createdAt *int64
36
36
+
if err := rows.Scan(&publicKey.Key, &publicKey.Name, &publicKey.DID, &createdAt); err != nil {
36
37
return nil, err
37
38
}
39
39
+
publicKey.Created = time.Unix(*createdAt, 0)
38
40
keys = append(keys, publicKey)
39
41
}
40
42
···
56
58
57
59
for rows.Next() {
58
60
var publicKey PublicKey
59
59
-
if err := rows.Scan(&publicKey.DID, &publicKey.Key, &publicKey.Name, &publicKey.Created); err != nil {
61
61
+
var createdAt *int64
62
62
+
if err := rows.Scan(&publicKey.DID, &publicKey.Key, &publicKey.Name, &createdAt); err != nil {
60
63
return nil, err
61
64
}
65
65
+
publicKey.Created = time.Unix(*createdAt, 0)
62
66
keys = append(keys, publicKey)
63
67
}
64
68