SpoorTrackingModule

spoortracking. SpoorTrackingModule

Module for making course content compatible with spoor

Constructor

new SpoorTrackingModule()

Source:

Extends

  • AbstractModule

Methods

(async) init()

Source:

(async) insertTrackingId(data)

Description:
  • Adds the latest tracking ID to a block
Source:
Parameters:
Name Type Description
data Object The block data to update

(async) resetCourseTrackingIds(_courseId) → {Promise}

Description:
  • Resets all tracking IDs for a single course
Source:
Parameters:
Name Type Description
_courseId String The course _id
Returns:
Type
Promise

(async) resetTrackingHandler(req, res, next)

Description:
  • Express handler for reseting all tracking IDs for a single course
Source:
Parameters:
Name Type Description
req external:ExpressRequest
res external:ExpressResponse
next function