fix: decorator ordering

statcimethod doesn't return normal function so can't be "chained" the
other way around

[skip ci]
This commit is contained in:
Ankush Menat 2022-11-09 19:37:35 +05:30
parent a5240824d5
commit 1dd719b123

View file

@ -922,8 +922,8 @@ class Database:
if dt in self.value_cache:
del self.value_cache[dt]
@deprecated
@staticmethod
@deprecated
def set(doc, field, val):
"""Set value in document. **Avoid**"""
doc.db_set(field, val)