Fixed add user
All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 4m15s
All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 4m15s
This commit is contained in:
parent
3360baad6c
commit
1510aee191
@ -176,7 +176,7 @@ class DataIntegrityService:
|
||||
|
||||
self._logger.warn(__name__, f"User not found in database: {u.id}")
|
||||
self._logger.debug(__name__, f"Add user: {u.id}")
|
||||
self._users.add_user(User(u.id, 0, 0, 0, server))
|
||||
self._users.add_user(User(u.id, 0, 0, 0, None, server))
|
||||
self._db_context.save_changes()
|
||||
|
||||
self._logger.debug(__name__, f"Added User: {u.id}")
|
||||
|
@ -21,7 +21,7 @@ class MigrationService:
|
||||
self._cursor = db.cursor
|
||||
|
||||
self._migrations: List[MigrationABC] = (
|
||||
List(type, MigrationABC.__subclasses__()).order_by(lambda x: x.name).order_by(lambda x: x.prio)
|
||||
List(type, MigrationABC.__subclasses__()).order_by(lambda x: x.name.split("_")[0]).then_by(lambda x: x.prio)
|
||||
)
|
||||
|
||||
def migrate(self):
|
||||
|
Loading…
Reference in New Issue
Block a user