         @getUser(who)
         .bind(id)
         .then (id) ->
-          getOncall(schedule_id)
+          getOncall()
         .then (oncall_name) ->
-          start     = moment().format()
-          minutes   = parseInt msg.match[1]
-          if minutes > 1440
-            msg.send "You want to override more than 24h? Are you drunk or something?"
-            return
-          end       = moment().add(minutes, 'minutes').format()
-          override  = {
-            'start': start,
-            'end': end,
+          query  = {
+            'start': moment().format(),
+            'end': moment().add(duration, 'minutes').format(),
             'user': {
               'id': id,
               'type': 'user_reference'

          }
          # TODO - with user on call, res a relevant message

          res "ok"
        .catch (error) ->
          err error


        err error



module.exports = Pagerv2
