notifications+topics-resolvers-fix
Some checks failed
Deploy on push / deploy (push) Failing after 2m35s

This commit is contained in:
2025-08-21 11:47:11 +03:00
parent 14bcd8d5ca
commit 4d36a1a5a7
4 changed files with 58 additions and 49 deletions

View File

@@ -11,7 +11,7 @@ from ariadne import (
from orm import collection, community, draft, invite, notification, reaction, shout, topic
from orm.author import Author, AuthorBookmark, AuthorFollower, AuthorRating
from storage.db import create_table_if_not_exists, local_session
from storage.db import create_table_if_not_exists
# Создаем основные типы
query = QueryType()
@@ -69,7 +69,7 @@ def create_all_tables() -> None:
]
from storage.db import engine
# Используем одно соединение для всех таблиц, чтобы избежать проблем с транзакциями
with engine.connect() as connection:
for model in models_in_order: