Skip to content

Commit

Permalink
[ci skip] Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
apidong authored and github-actions[bot] committed Jul 10, 2024
1 parent e45208b commit 542d7fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/BackupDatabaseStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ private function backupDatabase()
->setUserName(env('DB_USERNAME'))
->setPassword(env('DB_PASSWORD'));

$backup->dumpToFile($this->folder_database . '/' . $this->database_name);
$backup->dumpToFile($this->folder_database.'/'.$this->database_name);

LogBackup::create([
'status' => 1,
'log' => 'Success backup pantau:backup-database-storage'
'log' => 'Success backup pantau:backup-database-storage',
]);
} catch (Exception $ex) {
$this->command->notifMessage('Peringatan : gagal backup ke database Pantau, silakan cek koneksi !!!');
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Helpers/RemoteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function backupToCloudStorage($storage_type, $remote_name, $akhir_backup,
exec('rclone -v sync '.folder_backup().' '.$remote_name.':'.$directory_backup);

// notif berhasil
$this->command->notifMessage('Berhasil backup menggunakan tipe ' . $storage_type . ' tanggal ' . date('Y-m-d'));
$this->command->notifMessage('Berhasil backup menggunakan tipe '.$storage_type.' tanggal '.date('Y-m-d'));
LogBackup::create([
'status' => 1,
'log' => 'Gagal backup menggunakan tipe ' . $storage_type
'log' => 'Gagal backup menggunakan tipe '.$storage_type,
]);
} else {
// notif gagal
Expand Down

0 comments on commit 542d7fe

Please sign in to comment.