Fix new snip creation with content reference

This commit is contained in:
Tim 2023-12-20 23:17:45 +01:00
parent caa6d4da17
commit 3225ec5fe0
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ set('repository', 'git@git.loken.nl:ardent/Snips.git');
set('git_tty', true);
// Shared files/dirs between deploys
set('shared_dirs', ['var/log', 'var/sessions', 'var/snips']);
set('shared_dirs', ['var/log', 'var/sessions']);
set('shared_files', ['.env.local']);
//set('writable_dirs', ['var']);
set('migrations_config', '');
@ -24,7 +24,7 @@ set('allow_anonymous_stats', false);
host('snips.loken.nl')
->setRemoteUser('www-data')
->set('branch', function () {
return input()->getOption('branch') ?: 'main';
return input()->getOption('branch') ?: 'master';
})
->set('deploy_path', '~/snips.loken.nl');

View File

@ -28,7 +28,7 @@ readonly class SnipContentService
$this->em->persist($content);
$this->em->flush();
$this->snip->setActiveVersion($content->getId());
$this->snip->setActiveVersion($content);
$this->em->persist($this->snip);
$this->em->flush();
}