mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Post-PR review fixes
This commit is contained in:
@@ -25,7 +25,7 @@ App::get('/v1/health')
|
||||
|
||||
$output = [
|
||||
'status' => 'pass',
|
||||
'checkTime' => 0
|
||||
'ping' => 0
|
||||
];
|
||||
|
||||
$response->dynamic(new Document($output), Response::MODEL_HEALTH_STATUS);
|
||||
@@ -79,7 +79,7 @@ App::get('/v1/health/db')
|
||||
|
||||
$output = [
|
||||
'status' => 'pass',
|
||||
'checkTime' => \microtime(true) - $checkStart
|
||||
'ping' => \microtime(true) - $checkStart
|
||||
];
|
||||
|
||||
$response->dynamic(new Document($output), Response::MODEL_HEALTH_STATUS);
|
||||
@@ -113,7 +113,7 @@ App::get('/v1/health/cache')
|
||||
|
||||
$output = [
|
||||
'status' => 'pass',
|
||||
'checkTime' => \microtime(true) - $checkStart
|
||||
'ping' => \microtime(true) - $checkStart
|
||||
];
|
||||
|
||||
$response->dynamic(new Document($output), Response::MODEL_HEALTH_STATUS);
|
||||
@@ -169,8 +169,8 @@ App::get('/v1/health/time')
|
||||
}
|
||||
|
||||
$output = [
|
||||
'remote' => $timestamp,
|
||||
'local' => \time(),
|
||||
'remoteTime' => $timestamp,
|
||||
'localTime' => \time(),
|
||||
'diff' => $diff
|
||||
];
|
||||
|
||||
@@ -321,7 +321,7 @@ App::get('/v1/health/storage/local')
|
||||
|
||||
$output = [
|
||||
'status' => 'pass',
|
||||
'checkTime' => \microtime(true) - $checkStart
|
||||
'ping' => \microtime(true) - $checkStart
|
||||
];
|
||||
|
||||
$response->dynamic(new Document($output), Response::MODEL_HEALTH_STATUS);
|
||||
|
||||
@@ -23,7 +23,7 @@ class Any extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -58,7 +58,7 @@ class BaseList extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -61,7 +61,7 @@ class Collection extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ class Continent extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ class Country extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -66,7 +66,7 @@ class Currency extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@ class Document extends Any
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -65,7 +65,7 @@ class Domain extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ class Error extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -39,7 +39,7 @@ class ErrorDev extends Error
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -85,7 +85,7 @@ class Execution extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -67,7 +67,7 @@ class File extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -110,7 +110,7 @@ class Func extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@ class FuncPermissions extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -30,7 +30,7 @@ class HealthQueue extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ class HealthStatus extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ class HealthTime extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,7 @@ class JWT extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ class Key extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ class Language extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -66,7 +66,7 @@ class Locale extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -126,7 +126,7 @@ class Log extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -79,7 +79,7 @@ class Membership extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -30,7 +30,7 @@ class Mock extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ class None extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -38,7 +38,7 @@ class Permissions extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ class Phone extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -76,7 +76,7 @@ class Platform extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,7 @@ class Preferences extends Any
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -184,7 +184,7 @@ class Project extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -78,7 +78,7 @@ class Rule extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -156,7 +156,7 @@ class Session extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ class Tag extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -126,7 +126,7 @@ class Task extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -48,7 +48,7 @@ class Team extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -48,7 +48,7 @@ class Token extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -72,7 +72,7 @@ class User extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -72,7 +72,7 @@ class Webhook extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Collection
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -223,7 +223,7 @@ class HealthCustomServerTest extends Scope
|
||||
return [];
|
||||
}
|
||||
|
||||
public function testStorageAntiVirusSuccess():array
|
||||
public function testStorageAntivirusSuccess():array
|
||||
{
|
||||
/**
|
||||
* Test for SUCCESS
|
||||
|
||||
Reference in New Issue
Block a user