Skip to content

Commit 8b17f8c

Browse files
committed
fixup! feat(project): add mutation to delete assets in bulk
1 parent b55b382 commit 8b17f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/project/graphql/mutations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ async def delete_project_assets(
116116
result=None,
117117
)
118118

119-
deleted_count = (
119+
deleted_count = await (
120120
ProjectAsset.usable_objects()
121121
.filter(
122122
project_id=project_id,
123123
type=AssetTypeEnum.INPUT,
124124
input_type__in=asset_input_type,
125125
marked_as_deleted=False,
126126
)
127-
.update(marked_as_deleted=True)
127+
.aupdate(marked_as_deleted=True)
128128
)
129129

130130
return MutationResponseType(

0 commit comments

Comments
 (0)