mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-27 20:52:30 +00:00
Fix for postgres
This commit is contained in:
parent
651faee698
commit
4adf93e0f7
@ -147,7 +147,7 @@ class RegistrationStore(SQLBaseStore):
|
|||||||
"upgrade_ts": now,
|
"upgrade_ts": now,
|
||||||
"is_guest": 1 if make_guest else 0,
|
"is_guest": 1 if make_guest else 0,
|
||||||
"appservice_id": appservice_id,
|
"appservice_id": appservice_id,
|
||||||
"admin": admin,
|
"admin": 1 if admin else 0,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -160,7 +160,7 @@ class RegistrationStore(SQLBaseStore):
|
|||||||
"creation_ts": now,
|
"creation_ts": now,
|
||||||
"is_guest": 1 if make_guest else 0,
|
"is_guest": 1 if make_guest else 0,
|
||||||
"appservice_id": appservice_id,
|
"appservice_id": appservice_id,
|
||||||
"admin": admin,
|
"admin": 1 if admin else 0,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
except self.database_engine.module.IntegrityError:
|
except self.database_engine.module.IntegrityError:
|
||||||
|
Loading…
Reference in New Issue
Block a user