Skip to content

Commit

Permalink
Use user id instead of user object
Browse files Browse the repository at this point in the history
  • Loading branch information
reesercollins committed Jul 22, 2022
1 parent 0c60262 commit d42fa72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/datasets/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def duplicate(self) -> Response:
return self.response_400(message=error.messages)

try:
new_model = DuplicateDatasetCommand(g.user, item).run()
new_model = DuplicateDatasetCommand([g.user.id], item).run()
return self.response(201, id=new_model.id, result=item)
except DatasetInvalidError as ex:
return self.response_422(
Expand Down

0 comments on commit d42fa72

Please sign in to comment.