Skip to content

Commit 27b422f

Browse files
authored
Need session.commit() so that superuser is created
1 parent f6c2e53 commit 27b422f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/app/core/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ def init_db(session: Session) -> None:
3131
is_superuser=True,
3232
)
3333
user = crud.create_user(session=session, user_create=user_in)
34+
session.commit()

0 commit comments

Comments
 (0)