fix: Generate hash of length 8 for save point

This commit is contained in:
Gavin D'souza 2022-04-20 16:41:25 +05:30
parent 892e05fdc1
commit 6cdd33f26b

View file

@ -350,7 +350,7 @@ def validate_rename(
) -> str:
# using for update so that it gets locked and someone else cannot edit it while this rename is going on!
if save_point:
_SAVE_POINT = f"validate_rename_{frappe.generate_hash(8)}"
_SAVE_POINT = f"validate_rename_{frappe.generate_hash(length=8)}"
frappe.db.savepoint(_SAVE_POINT)
exists = (