mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 23:44:19 -05:00
Fix for postgres
This commit is contained in:
parent
651faee698
commit
4adf93e0f7
@ -147,7 +147,7 @@ class RegistrationStore(SQLBaseStore):
|
||||
"upgrade_ts": now,
|
||||
"is_guest": 1 if make_guest else 0,
|
||||
"appservice_id": appservice_id,
|
||||
"admin": admin,
|
||||
"admin": 1 if admin else 0,
|
||||
}
|
||||
)
|
||||
else:
|
||||
@ -160,7 +160,7 @@ class RegistrationStore(SQLBaseStore):
|
||||
"creation_ts": now,
|
||||
"is_guest": 1 if make_guest else 0,
|
||||
"appservice_id": appservice_id,
|
||||
"admin": admin,
|
||||
"admin": 1 if admin else 0,
|
||||
}
|
||||
)
|
||||
except self.database_engine.module.IntegrityError:
|
||||
|
Loading…
Reference in New Issue
Block a user