Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
8c8acc33
Commit
8c8acc33
authored
Jun 04, 2020
by
les
Browse files
minor
parent
5dae6273
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/api/controller/event.js
View file @
8c8acc33
...
...
@@ -84,8 +84,6 @@ const eventController = {
res
.
json
(
place
)
},
// TODO retrieve next/prev event also
// select id, start_datetime, title from events where start_datetime > (select start_datetime from events where id=89) order by start_datetime limit 20;
async
get
(
req
,
res
)
{
const
format
=
req
.
params
.
format
||
'
json
'
const
is_admin
=
req
.
user
&&
req
.
user
.
is_admin
...
...
@@ -160,7 +158,7 @@ const eventController = {
},
/** confirm an anonymous event
* and send
its
relat
iv
e notifications
* and send relate
d
notifications
*/
async
confirm
(
req
,
res
)
{
const
id
=
Number
(
req
.
params
.
event_id
)
...
...
@@ -523,7 +521,6 @@ const eventController = {
/**
* Create instances of recurrent events
* @param {Number} start_datetime
*/
async
_createRecurrent
(
start_datetime
=
moment
().
unix
())
{
// select recurrent events
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment