From 547d66e4ddd7ccf4f2a93ca8e75d11fd45302a4b Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 20 Mar 2020 12:53:11 +0100 Subject: [PATCH] Add countdown timers support --- src/controllers/PostsController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/PostsController.ts b/src/controllers/PostsController.ts index fe7a416..aea8253 100644 --- a/src/controllers/PostsController.ts +++ b/src/controllers/PostsController.ts @@ -249,6 +249,12 @@ export class PostsController { break; + + // Countdown timers + case PostKind.POST_KIND_COUNTDOWN: + newPost.timeEnd = h.postInt("time-end"); + break; + default: h.error(500, "Unsupported kind of post!");