Skip to content

Commit 30c4abd

Browse files
committed
two more fixes
1 parent 2b1a1e1 commit 30c4abd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/app/alembic/versions/1a31ce608336_add_cascade_delete_relationships.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def upgrade():
2929

3030
def downgrade():
3131
# ### commands auto generated by Alembic - please adjust! ###
32-
op.drop_constraint(None, 'item', type_='foreignkey')
32+
op.drop_constraint('item_owner_id_fkey', 'item', type_='foreignkey')
3333
op.create_foreign_key('item_owner_id_fkey', 'item', 'user', ['owner_id'], ['id'])
3434
op.alter_column('item', 'owner_id',
3535
existing_type=sa.UUID(),

backend/app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def custom_generate_unique_id(route: APIRoute) -> str:
2222

2323
# Set all CORS enabled origins
2424
if settings.all_cors_origins:
25-
app.add_middleware( # type: ignore[arg-type]
26-
CORSMiddleware,
25+
app.add_middleware(
26+
CORSMiddleware, # ty: ignore
2727
allow_origins=settings.all_cors_origins,
2828
allow_credentials=True,
2929
allow_methods=["*"],

0 commit comments

Comments
 (0)