Skip to content
Snippets Groups Projects
Verified Commit 7d419f17 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Bugfix, version 1.0.0

parent 136be18b
No related branches found
No related tags found
No related merge requests found
Pipeline #1941 passed
......@@ -3,7 +3,7 @@ image: docker:19.03.1
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: $CI_REGISTRY_IMAGE
IMAGE_VER: 0.11.0
IMAGE_VER: 1.0.0
services:
- docker:19.03.1-dind
......
......@@ -175,6 +175,7 @@ sub update ($c) {
if ( $update->{state} && $post->state != $update->{state} ) {
my $announcement_type = STATUS_ANNOUNCEMENTS->{ $args->{state} };
if ( $announcement_type ) {
#TODO: do modelu
my $msg = $c->schema->resultset('Announcement')->from_template(
$announcement_type,
......@@ -198,6 +199,7 @@ sub update ($c) {
payload => $announcement->format(),
});
}
}
$post->add_to_history({
user_id => $c->user->{id},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment