mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
refactoring
This commit is contained in:
parent
2c339a6bfd
commit
6cd6af150b
|
|
@ -3,7 +3,6 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
const registrationTokensSchema = `
|
||||
|
|
@ -22,6 +21,5 @@ func CreateRegistrationTokensTable(db *sql.DB) error {
|
|||
}
|
||||
|
||||
func RegistrationTokenExists(ctx context.Context, tx *sql.Tx, token string) (bool, error) {
|
||||
fmt.Println("here!!")
|
||||
return true, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ type Database struct {
|
|||
PublishedTable tables.Published
|
||||
Purge tables.Purge
|
||||
GetRoomUpdaterFn func(ctx context.Context, roomInfo *types.RoomInfo) (*RoomUpdater, error)
|
||||
RegistrationTokensTable tables.RegistrationTokens
|
||||
}
|
||||
|
||||
// EventDatabase contains all tables needed to work with events
|
||||
|
|
@ -55,7 +56,6 @@ type EventDatabase struct {
|
|||
EventStateKeysTable tables.EventStateKeys
|
||||
PrevEventsTable tables.PreviousEvents
|
||||
RedactionsTable tables.Redactions
|
||||
RegistrationTokensTable tables.RegistrationTokens
|
||||
}
|
||||
|
||||
func (d *Database) RegistrationTokenExists(ctx context.Context, token string) (bool, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue