mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Fix typo in database whitelist DDL
This commit is contained in:
parent
b2ecd5648c
commit
a7457d316b
2 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,8 @@ func NewInternalAPI(
|
|||
if err != nil {
|
||||
logrus.WithError(err).Panic("failed to clear whitelisted servers")
|
||||
}
|
||||
// Add each whitelisted server to the database
|
||||
|
||||
// Add each whitelisted server to the data
|
||||
for _, server := range cfg.WhitelistedServers {
|
||||
err = stats.DB.AddServerToWhitelist(server)
|
||||
if err != nil {
|
||||
|
|
|
@ -13,6 +13,7 @@ CREATE TABLE IF NOT EXISTS federationsender_whitelist (
|
|||
-- The whitelisted server name
|
||||
server_name TEXT NOT NULL,
|
||||
UNIQUE (server_name)
|
||||
);
|
||||
`
|
||||
|
||||
const insertWhitelistSQL = "" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue