From 27b422ff9ef5dabfcf862068a2848f325d53727a Mon Sep 17 00:00:00 2001 From: ariadi Date: Fri, 13 Feb 2026 22:53:10 +0700 Subject: [PATCH] Need session.commit() so that superuser is created --- backend/app/core/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/core/db.py b/backend/app/core/db.py index ba991fb36d..7e84003d39 100644 --- a/backend/app/core/db.py +++ b/backend/app/core/db.py @@ -31,3 +31,4 @@ def init_db(session: Session) -> None: is_superuser=True, ) user = crud.create_user(session=session, user_create=user_in) + session.commit()