mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 12:03:50 +01:00
Fix for postgres
This commit is contained in:
parent
651faee698
commit
4adf93e0f7
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue