We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96362e2 commit 0292917Copy full SHA for 0292917
services/web/server/src/simcore_service_webserver/licenses/_licensed_resources_repository.py
@@ -122,6 +122,11 @@ async def update(
122
licensed_resources.c.modified.name: func.now(),
123
}
124
125
+ # trashing
126
+ assert "trash" in dict(LicensedResourcePatchDB.model_fields) # nosec
127
+ if trash := _updates.pop("trash", None):
128
+ _updates[licensed_resources.c.trashed.name] = func.now() if trash else None
129
+
130
async with transaction_context(get_asyncpg_engine(app), connection) as conn:
131
result = await conn.execute(
132
licensed_resources.update()
0 commit comments