Fix portal DB scanning and add initial message bridging

This commit is contained in:
Tulir Asokan
2018-08-19 18:21:38 +03:00
parent a9124b89bd
commit c1f8d264f4
5 changed files with 106 additions and 46 deletions

View File

@ -87,7 +87,7 @@ type Portal struct {
}
func (portal *Portal) Scan(row Scannable) *Portal {
err := row.Scan(&portal.JID, &portal.MXID, &portal.Owner)
err := row.Scan(&portal.JID, &portal.Owner, &portal.MXID)
if err != nil {
if err != sql.ErrNoRows {
portal.log.Fatalln("Database scan failed:", err)