feat(financial_status):add update project_price

This commit is contained in:
shahzeydyfah
2025-01-20 23:55:26 +03:30
parent 501fafc5d8
commit b1c1c697b0
2 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class ProjectRepository(BaseRepository[ProjectModel]):
}
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).insert_one(price)
else:
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).update_one({'project_id': update.id}, {'first_amount': update.monitor.detail.first_amount})
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).update_one({'project_id': update.id}, {'$set':{'first_amount': update.monitor.detail.first_amount}})
return True
async def create(self,coding:ProjectModel):