alpha
Login
or
Join now
alice.pds.demo.boltless.dev
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
2
Pulls
1
Pipelines
use epoch time in pubkeys table too
author
Akshay
date
2 years ago
(Feb 3, 2025, 1:59 PM UTC)
commit
c3fae1b1
c3fae1b14cc2ee8f062547f3b6400757730afd85
parent
cf43437a
cf43437a979841bd766605100bf8972e6825c6dd
+6
-2
1 changed file
Expand all
Collapse all
Unified
Split
appview
db
pubkeys.go
+6
-2
appview/db/pubkeys.go
View file
Reviewed
···
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