Fix broadcasts not being marked as ended on DJ disconnect (#3681)

This commit is contained in:
Vaalyn 2021-01-16 04:09:16 +01:00 committed by GitHub
parent 664b0dca8c
commit 150c465783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class StationStreamerRepository extends Repository
$destPath = FilesystemManager::PREFIX_RECORDINGS . '://' . $broadcastPath;
if ($fs->has($tempPath)) {
$fs->copy($tempPath, $destPath);
$fs->move($tempPath, $destPath);
}
$broadcast->setTimestampEnd(time());

View File

@ -12,7 +12,7 @@ use OpenApi\Annotations as OA;
* Each individual broadcast associated with a streamer.
*
* @ORM\Table(name="station_streamer_broadcasts")
* @ORM\Entity(readOnly=true)
* @ORM\Entity()
* @ORM\HasLifecycleCallbacks
*
* @OA\Schema(type="object")