diff --git a/services/track-changes/app/coffee/Metrics.coffee b/services/track-changes/app/coffee/Metrics.coffee deleted file mode 100644 index c0e7d12731..0000000000 --- a/services/track-changes/app/coffee/Metrics.coffee +++ /dev/null @@ -1 +0,0 @@ -module.exports = require "metrics-sharelatex" diff --git a/services/track-changes/app/coffee/MongoAWS.coffee b/services/track-changes/app/coffee/MongoAWS.coffee index 42f41863a6..8a0a065317 100644 --- a/services/track-changes/app/coffee/MongoAWS.coffee +++ b/services/track-changes/app/coffee/MongoAWS.coffee @@ -6,7 +6,7 @@ S3S = require 's3-streams' JSONStream = require "JSONStream" ReadlineStream = require "byline" zlib = require "zlib" -Metrics = require "./Metrics" +Metrics = require "metrics-sharelatex" DAYS = 24 * 3600 * 1000 # one day in milliseconds diff --git a/services/track-changes/app/coffee/PackManager.coffee b/services/track-changes/app/coffee/PackManager.coffee index d60500ce56..d8069da518 100644 --- a/services/track-changes/app/coffee/PackManager.coffee +++ b/services/track-changes/app/coffee/PackManager.coffee @@ -4,7 +4,7 @@ _ = require "underscore" logger = require "logger-sharelatex" LockManager = require "./LockManager" MongoAWS = require "./MongoAWS" -Metrics = require "./Metrics" +Metrics = require "metrics-sharelatex" ProjectIterator = require "./ProjectIterator" # Sharejs operations are stored in a 'pack' object diff --git a/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee b/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee index 2da3fdaaef..2dc289d89a 100644 --- a/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee +++ b/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee @@ -26,7 +26,7 @@ describe "MongoAWS", -> "./mongojs" : { db: @db = {}, ObjectId: ObjectId } "JSONStream": @JSONStream = {} "readline-stream": @readline = sinon.stub() - './Metrics': {inc: ()->} + 'metrics-sharelatex': {inc: ()->} @project_id = ObjectId().toString() @doc_id = ObjectId().toString() diff --git a/services/track-changes/test/unit/coffee/PackManager/PackManagerTests.coffee b/services/track-changes/test/unit/coffee/PackManager/PackManagerTests.coffee index 63309a1ff0..29c9cf6d3d 100644 --- a/services/track-changes/test/unit/coffee/PackManager/PackManagerTests.coffee +++ b/services/track-changes/test/unit/coffee/PackManager/PackManagerTests.coffee @@ -20,7 +20,7 @@ describe "PackManager", -> "./LockManager" : {} "./MongoAWS": {} "logger-sharelatex": { log: sinon.stub(), error: sinon.stub() } - './Metrics': {inc: ()->} + 'metrics-sharelatex': {inc: ()->} @callback = sinon.stub() @doc_id = ObjectId().toString() @project_id = ObjectId().toString()