forked from tangled.org/core
this repo has no description

appview/db: fix issues with collaborators table

- CollaboratingIn was not producing reverse mappings
- collaborators.created was never set

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 6d341aa6 3e162e4e

verified
Changed files
+2 -2
appview
+1 -1
appview/db/collaborators.go
··· 50 50 } 51 51 52 52 func CollaboratingIn(e Execer, collaborator string) ([]Repo, error) { 53 - rows, err := e.Query(`select repo_at from collaborators where did = ?`, collaborator) 53 + rows, err := e.Query(`select repo_at from collaborators where subject_did = ?`, collaborator) 54 54 if err != nil { 55 55 return nil, err 56 56 }
+1 -1
appview/db/db.go
··· 603 603 repo_at text not null, 604 604 605 605 -- meta 606 - created text default (strftime('%y-%m-%dt%h:%m:%sz', 'now')), 606 + created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')), 607 607 608 608 -- constraints 609 609 foreign key (repo_at) references repos(at_uri) on delete cascade