aboutsummaryrefslogtreecommitdiff
path: root/verification.go
diff options
context:
space:
mode:
authorFChannel <>2021-05-30 17:41:12 -0700
committerFChannel <>2021-05-30 17:41:12 -0700
commit869b0262ac1c69fe41cc8d6bc59bd47f6e48f685 (patch)
treef52177ef0b042759626c091cf1a3a88a1fff84a7 /verification.go
parentb4e551b3db5a5fc69befeffb7fba17b50dc2e258 (diff)
added publickeypem to actor activity requests
Diffstat (limited to 'verification.go')
-rw-r--r--verification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/verification.go b/verification.go
index ec64f63..99f5fb7 100644
--- a/verification.go
+++ b/verification.go
@@ -536,7 +536,7 @@ func StorePemToDB(db *sql.DB, actor Actor) {
CheckError(err, "error updating publicKeyPem id to actor")
file := "./pem/board/" + actor.Name + "-public.pem"
- query = "insert into publicKeyPem (id, file) values($1, $2)"
- _, err = db.Exec(query, publicKeyPem, file)
+ query = "insert into publicKeyPem (id, owner, file) values($1, $2, $3)"
+ _, err = db.Exec(query, publicKeyPem, actor.Id, file)
CheckError(err, "error creating publicKeyPem for actor ")
}