This commit is contained in:
vladislav 2026-09-03 06:41:33 -04:00
parent 1cd372d318
commit 929f688c85
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45
2 changed files with 2 additions and 0 deletions

View File

@ -591,6 +591,7 @@
" \"receiver\": sender,\n",
" \"sender\": doc.get(\"receiver\"),\n",
" }\n",
" new_doc.pop('_id')\n",
"\n",
" await delivery_collection.update_one(\n",
" {**prod_filter, \"status\": \"Возврат художнику\", \"post_id\": post_id, \"exhibition_id\": exhibition_id},\n",

View File

@ -379,6 +379,7 @@ async def cron_every_five_min(token: str = Security(get_token)):
"receiver": sender,
"sender": doc.get("receiver"),
}
new_doc.pop('_id')
await delivery_collection.update_one(
{**prod_filter, "status": "Возврат художнику", "post_id": post_id, "exhibition_id": exhibition_id},