Skip to content

Commit

Permalink
🐛 Fixing a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xxb committed Nov 5, 2019
1 parent a3ff28d commit 01b067e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/api/controller/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function index()
Db::commit();
} catch (Exception $e) {
Db::rollback();
return $this->response($e->getMessage(), null, 500);
return $this->response($e->getMessage(), [], 500);
}
return $this->response('success', $data);
}
Expand Down

0 comments on commit 01b067e

Please sign in to comment.