version++ and fix private key saving

This commit is contained in:
Andras Bacsai
2024-11-15 21:22:11 +01:00
parent 3565996224
commit 0eab7f78ff
4 changed files with 8 additions and 9 deletions

View File

@@ -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()

View File

@@ -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'),

View File

@@ -1,3 +1,3 @@
<?php <?php
return '4.0.0-beta.369'; return '4.0.0-beta.370';

View File

@@ -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"
} }
} }
} }