version++ and fix private key saving
This commit is contained in:
@@ -219,15 +219,14 @@ class PrivateKey extends BaseModel
|
|||||||
private static function fingerprintExists($fingerprint, $excludeId = null)
|
private static function fingerprintExists($fingerprint, $excludeId = null)
|
||||||
{
|
{
|
||||||
$query = self::query()
|
$query = self::query()
|
||||||
->where('fingerprint', $fingerprint);
|
->where('fingerprint', $fingerprint)
|
||||||
|
->where('id', '!=', $excludeId);
|
||||||
|
|
||||||
if (currentTeam()) {
|
if (currentTeam()) {
|
||||||
$query->where('team_id', currentTeam()->id);
|
$query->where('team_id', currentTeam()->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query
|
return $query->exists();
|
||||||
->when($excludeId, fn ($query) => $query->where('id', '!=', $excludeId))
|
|
||||||
->exists();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function cleanupUnusedKeys()
|
public static function cleanupUnusedKeys()
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'coolify' => [
|
'coolify' => [
|
||||||
'version' => '4.0.0-beta.369',
|
'version' => '4.0.0-beta.370',
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
'autoupdate' => env('AUTOUPDATE'),
|
'autoupdate' => env('AUTOUPDATE'),
|
||||||
'base_config_path' => env('BASE_CONFIG_PATH', '/data/coolify'),
|
'base_config_path' => env('BASE_CONFIG_PATH', '/data/coolify'),
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return '4.0.0-beta.369';
|
return '4.0.0-beta.370';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.369"
|
"version": "4.0.0-beta.370"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.370"
|
"version": "4.0.0-beta.371"
|
||||||
},
|
},
|
||||||
"helper": {
|
"helper": {
|
||||||
"version": "1.0.4"
|
"version": "1.0.4"
|
||||||
@@ -16,4 +16,4 @@
|
|||||||
"version": "0.0.15"
|
"version": "0.0.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user