fixed issue wit the way returning works

This commit is contained in:
Hellow2 2023-05-24 09:50:27 +02:00
parent 7126db9666
commit dd0708eef0

View File

@ -84,7 +84,8 @@ def clean_object(dirty_object: DatabaseObject) -> DatabaseObject:
Song: Collection(element_type=Song)
}
return _clean_music_object(dirty_object, collections)
_clean_music_object(dirty_object, collections)
return dirty_object
def build_new_object(new_object: DatabaseObject) -> DatabaseObject:
new_object = clean_object(new_object)