Skip to content

Commit

Permalink
Fix small rest bug
Browse files Browse the repository at this point in the history
blythed committed May 2, 2024
1 parent 7804be2 commit 09d0b70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superduperdb/rest/app.py
Original file line number Diff line number Diff line change
@@ -136,9 +136,7 @@ def db_apply_stack(info: t.Dict):
content=info['_leaves'], db=app.db, identifier=info['identifier']
)
else:
id = f'_component/{info["type_id"]}/{info["identifier"]}'
r = {'_leaves': [{**info, 'id': id}], '_base': id}
component = import_(r=r, db=app.db)
component = import_(r=info, db=app.db)
app.db.apply(component)
return {'status': 'ok'}

0 comments on commit 09d0b70

Please sign in to comment.