优化更新记录的钩子机制
This commit is contained in:
parent
3e0aa1e3f3
commit
2e5cb33456
@ -174,8 +174,6 @@ async def create_record_api(request: Request, pagetype: str, data: Dict[str, Any
|
|||||||
async def update_record_api(request: Request, pagetype: str, name: str, data: Dict[str, Any]):
|
async def update_record_api(request: Request, pagetype: str, name: str, data: Dict[str, Any]):
|
||||||
"""更新记录"""
|
"""更新记录"""
|
||||||
try:
|
try:
|
||||||
execute_hooks(pagetype, name, "before_save", data)
|
|
||||||
|
|
||||||
result = update_record(pagetype, name, data)
|
result = update_record(pagetype, name, data)
|
||||||
|
|
||||||
if not result.get('success'):
|
if not result.get('success'):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user