Fix portal DB scanning and add initial message bridging

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

No files matched your search

+1 -1
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)