Move SchedulerUtils out of nylas-core to local-sync/src/shared

This commit is contained in:
Evan Morikawa 2016-11-22 17:07:48 -08:00
parent 008a294242
commit c019e9a23b
7 changed files with 7 additions and 6 deletions

View file

@ -10,7 +10,8 @@ const Vision = require('vision');
const Package = require('../../package');
const fs = require('fs');
const path = require('path');
const {DatabaseConnector, SchedulerUtils, Logger} = require(`nylas-core`);
const {DatabaseConnector, Logger} = require(`nylas-core`);
const SchedulerUtils = require('../shared/scheduler-utils')
global.Metrics = Metrics
global.Logger = Logger.createLogger('nylas-k2-api')

View file

@ -1,5 +1,5 @@
const Joi = require('joi');
const {SchedulerUtils} = require(`nylas-core`);
const SchedulerUtils = require('../../shared/scheduler-utils');
module.exports = (server) => {
server.route({

View file

@ -1,8 +1,8 @@
const {
DatabaseConnector,
PubsubConnector,
SchedulerUtils,
} = require(`nylas-core`);
const SchedulerUtils = require('../../shared/scheduler-utils')
function onWebsocketConnected(wss, ws) {
let toSend;

View file

@ -1,5 +1,6 @@
const SyncWorker = require('./sync-worker');
const {PromiseUtils, DatabaseConnector, PubsubConnector, SchedulerUtils} = require(`nylas-core`)
const {PromiseUtils, DatabaseConnector, PubsubConnector} = require(`nylas-core`)
const SchedulerUtils = require('../shared/scheduler-utils')
const IDENTITY = `${global.instanceId}-${process.pid}`;

View file

@ -1,5 +1,4 @@
const {
SchedulerUtils,
IMAPConnection,
PubsubConnector,
DatabaseConnector,
@ -7,6 +6,7 @@ const {
Errors,
PromiseUtils,
} = require('nylas-core');
const SchedulerUtils = require('../shared/scheduler-utils')
const {
jsonError,
} = require('./sync-utils')

View file

@ -8,7 +8,6 @@ module.exports = {
Imap: require('imap'),
IMAPConnection: require('./imap-connection'),
SyncPolicy: require('./sync-policy'),
SchedulerUtils: require('./scheduler-utils'),
MessageTypes: require('./message-types'),
Logger: require('./logger'),
Errors: require('./imap-errors'),