Run tests
This commit is contained in:
parent
dfeaec0f7b
commit
7a865dbda9
8
composer.lock
generated
8
composer.lock
generated
|
@ -1560,12 +1560,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/database.git",
|
||||
"reference": "c3b76a5dd864791744168dcc6fb32eb159a08691"
|
||||
"reference": "180bb663bdd0050ae24886808ea34eafc8c4e5e8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/c3b76a5dd864791744168dcc6fb32eb159a08691",
|
||||
"reference": "c3b76a5dd864791744168dcc6fb32eb159a08691",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/180bb663bdd0050ae24886808ea34eafc8c4e5e8",
|
||||
"reference": "180bb663bdd0050ae24886808ea34eafc8c4e5e8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1609,7 +1609,7 @@
|
|||
"issues": "https://github.com/utopia-php/database/issues",
|
||||
"source": "https://github.com/utopia-php/database/tree/fix-transaction-rollback"
|
||||
},
|
||||
"time": "2024-03-28T09:11:01+00:00"
|
||||
"time": "2024-03-28T09:46:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/domains",
|
||||
|
|
|
@ -84,7 +84,6 @@ services:
|
|||
- ./public:/usr/src/code/public
|
||||
- ./src:/usr/src/code/src
|
||||
- ./dev:/usr/src/code/dev
|
||||
- ./vendor/utopia-php/database:/usr/src/code/vendor/utopia-php/database
|
||||
depends_on:
|
||||
- mariadb
|
||||
- redis
|
||||
|
|
|
@ -302,7 +302,7 @@ class Exception extends \Exception
|
|||
$this->type = $type;
|
||||
$this->code = $code ?? $this->errors[$type]['code'];
|
||||
|
||||
// shmuel
|
||||
// todo: Handle better PDOExceptions
|
||||
if(is_string($this->code)){
|
||||
$this->code = 500;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue