From 869b0262ac1c69fe41cc8d6bc59bd47f6e48f685 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 30 May 2021 17:41:12 -0700 Subject: added publickeypem to actor activity requests --- verification.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'verification.go') 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 ") } -- cgit v1.2.3