We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d3e2ba commit 25a0014Copy full SHA for 25a0014
app/entities/controllers.py
@@ -66,7 +66,7 @@ def update_entity(id):
66
entity = Entity.objects.get(id=ObjectId(id))
67
entity = update_document(entity, json_data)
68
entity.save()
69
- return 'success', 200
+ return build_response.sent_ok()
70
71
72
@entities_blueprint.route('/<id>', methods=['DELETE'])
frontend/src/app/agent/entity/entity.component.ts
@@ -55,8 +55,8 @@ export class EntityComponent implements OnInit {
55
}
56
saveEntity(){
57
this.entitiesService.saveEntity(this.entity).then(
58
- (result)=>{
59
- console.log(result);
+ (result:any)=>{
+ console.log("Success: " + JSON.stringify(result));
60
61
)
62
0 commit comments