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)
|
||||
{
|
||||
$query = self::query()
|
||||
->where('fingerprint', $fingerprint);
|
||||
->where('fingerprint', $fingerprint)
|
||||
->where('id', '!=', $excludeId);
|
||||
|
||||
if (currentTeam()) {
|
||||
$query->where('team_id', currentTeam()->id);
|
||||
}
|
||||
|
||||
return $query
|
||||
->when($excludeId, fn ($query) => $query->where('id', '!=', $excludeId))
|
||||
->exists();
|
||||
return $query->exists();
|
||||
}
|
||||
|
||||
public static function cleanupUnusedKeys()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
return [
|
||||
'coolify' => [
|
||||
'version' => '4.0.0-beta.369',
|
||||
'version' => '4.0.0-beta.370',
|
||||
'self_hosted' => env('SELF_HOSTED', true),
|
||||
'autoupdate' => env('AUTOUPDATE'),
|
||||
'base_config_path' => env('BASE_CONFIG_PATH', '/data/coolify'),
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<?php
|
||||
|
||||
return '4.0.0-beta.369';
|
||||
return '4.0.0-beta.370';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"coolify": {
|
||||
"v4": {
|
||||
"version": "4.0.0-beta.369"
|
||||
"version": "4.0.0-beta.370"
|
||||
},
|
||||
"nightly": {
|
||||
"version": "4.0.0-beta.370"
|
||||
"version": "4.0.0-beta.371"
|
||||
},
|
||||
"helper": {
|
||||
"version": "1.0.4"
|
||||
|
||||
Reference in New Issue
Block a user