From 281a8e96b2e32d5132db8103b2f02a95ec0df89e Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Wed, 16 Dec 2020 10:14:01 -0800 Subject: [PATCH] fix setup --- app.ts | 3 ++- dist/app.js | 1 + dist/app.js.map | 2 +- dist/src/controllers/index.js | 7 +------ dist/src/controllers/index.js.map | 2 +- dist/src/utils/setup.js | 1 - dist/src/utils/setup.js.map | 2 +- src/controllers/index.ts | 7 ++----- src/utils/setup.ts | 1 - 9 files changed, 9 insertions(+), 17 deletions(-) diff --git a/app.ts b/app.ts index 76238f2..c3ae64f 100644 --- a/app.ts +++ b/app.ts @@ -5,7 +5,7 @@ import * as cookieParser from 'cookie-parser' import * as cors from 'cors' import logger from './src/utils/logger' import { pingHubInterval, checkInvitesHubInterval } from './src/hub' -import { setupDatabase, setupDone } from './src/utils/setup' +import { setupDatabase, setupDone, setupOwnerContact } from './src/utils/setup' import * as controllers from './src/controllers' import * as connect from './src/utils/connect' import * as socket from './src/utils/socket' @@ -43,6 +43,7 @@ async function mainSetup() { } async function finishSetup() { + setupOwnerContact() await network.initTribesSubscriptions() if (config.hub_api_url) { checkInvitesHubInterval(5000) diff --git a/dist/app.js b/dist/app.js index facb3df..23e89f0 100644 --- a/dist/app.js +++ b/dist/app.js @@ -53,6 +53,7 @@ function mainSetup() { } function finishSetup() { return __awaiter(this, void 0, void 0, function* () { + setup_1.setupOwnerContact(); yield network.initTribesSubscriptions(); if (config.hub_api_url) { hub_1.checkInvitesHubInterval(5000); diff --git a/dist/app.js.map b/dist/app.js.map index 76da5e3..b9a43e6 100644 --- a/dist/app.js.map +++ b/dist/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAkC;AAClC,0CAAyC;AACzC,iCAAgC;AAChC,8CAA6C;AAC7C,6BAA4B;AAC5B,+CAAuC;AACvC,mCAAoE;AACpE,6CAA4D;AAC5D,iDAAgD;AAChD,+CA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oBAC3C,MAAM,EAAE,GAAG,MAAM,eAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;oBACnC,IAAI,EAAE,EAAE;wBACP,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;wBACjC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;wBACtB,OAAO,CAAC,IAAI,CAAC,CAAA;qBACb;gBACF,CAAC;aAAA,CAAC,CAAA;SACF;IAEF,CAAC,CAAA,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/src/controllers/index.js b/dist/src/controllers/index.js index 98cf6b3..5cab999 100644 --- a/dist/src/controllers/index.js +++ b/dist/src/controllers/index.js @@ -35,12 +35,7 @@ function set(app) { if (models_1.models && models_1.models.Subscription) { subcriptions.initializeCronJobs(); } - try { - yield media.cycleMediaToken(); - } - catch (e) { - console.log('=> could not auth with media server', e.message); - } + media.cycleMediaToken(); timers.reloadTimers(); app.get('/chats', chats.getChats); app.post('/group', chats.createGroupChat); diff --git a/dist/src/controllers/index.js.map b/dist/src/controllers/index.js.map index bcaf5db..a1112bc 100644 --- a/dist/src/controllers/index.js.map +++ b/dist/src/controllers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,iCAAgC;AAChC,8CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,+BAA8B;AAE9B,SAAsB,GAAG,CAAC,GAAG;;QAE5B,WAAW,CAAC,IAAI,EAA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awaiter(void 0, void 0, void 0, function* () { // console.log("db sync failed", e) } yield migrate(); - setupOwnerContact(); console.log('=> [db] setup done'); }); exports.setupDatabase = setupDatabase; diff --git a/dist/src/utils/setup.js.map b/dist/src/utils/setup.js.map index 96ecbfa..e40bcec 100644 --- a/dist/src/utils/setup.js.map +++ b/dist/src/utils/setup.js.map @@ -1 +1 @@ -{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA6C;AAC7C,iDAAoC;AACpC,iCAAgC;AAChC,8CAA4D;AAC5D,yBAAyB;AACzB,yCAAoC;AACpC,uCAAiC;AAEjC,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IAClB,IAAI;QACF,MAAM,kBAAS,CAAC,IAAI,EAAE,CAAA;QACtB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KACpC;IAAC,OAAO,CAAC,EAAE;QACV,mCAAmC;KACpC;IACD,MAAM,OAAO,EAAE,CAAA;IACf,iBAAiB,EAAE,CAAA;IACnB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AACnC,CAAC,CAAA,CAAA;AA2KQ,sCAAa;AAzKtB,SAAe,UAAU;;QACvB,IAAI;YACF,MAAM,kBAAS,CAAC,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAA;SAC/D;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAA;SACvC;IACH,CAAC;CAAA;AAED,SAAe,OAAO;;QAEpB,cAAc,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAA;QAEnD,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;QAC9C,cAAc,CA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,GAAG,CAAC,qCAAqC,EAAE,GAAG,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/src/controllers/index.ts b/src/controllers/index.ts index 554f9a6..5f8a18e 100644 --- a/src/controllers/index.ts +++ b/src/controllers/index.ts @@ -26,11 +26,8 @@ export async function set(app) { if (models && models.Subscription) { subcriptions.initializeCronJobs() } - try { - await media.cycleMediaToken() - } catch (e) { - console.log('=> could not auth with media server', e.message) - } + + media.cycleMediaToken() timers.reloadTimers() diff --git a/src/utils/setup.ts b/src/utils/setup.ts index 524b354..6a9085c 100644 --- a/src/utils/setup.ts +++ b/src/utils/setup.ts @@ -19,7 +19,6 @@ const setupDatabase = async () => { // console.log("db sync failed", e) } await migrate() - setupOwnerContact() console.log('=> [db] setup done') }