Add project listing selector, confirmed revision and private 3MF renders

This commit is contained in:
2026-11-08 18:49:32 +00:00
parent e62b6800a6
commit 4e675510fd
29 changed files with 3394 additions and 14 deletions
@@ -57,7 +57,7 @@ class ProjectReleaseController extends Controller
$release = DB::transaction(function () use ($request, $project, $listingLink, $revision, $costSnapshot, $data): ProjectRelease {
Project::query()->whereKey($project->id)->lockForUpdate()->firstOrFail();
$locked = ProjectListingLink::query()->whereKey($listingLink->id)->lockForUpdate()->firstOrFail();
if ($locked->lock_version !== $data['lock_version']) {
if ((int) $locked->lock_version !== (int) $data['lock_version']) {
throw new OptimisticLockConflictException('The listing mapping changed since you loaded it.');
}
@@ -113,7 +113,7 @@ class ProjectReleaseController extends Controller
$release = DB::transaction(function () use ($request, $project, $listingLink, $target, $data): ProjectRelease {
Project::query()->whereKey($project->id)->lockForUpdate()->firstOrFail();
$locked = ProjectListingLink::query()->whereKey($listingLink->id)->lockForUpdate()->firstOrFail();
if ($locked->lock_version !== $data['lock_version']) {
if ((int) $locked->lock_version !== (int) $data['lock_version']) {
throw new OptimisticLockConflictException('The listing mapping changed since you loaded it.');
}