Browse Source

enable

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
2e261d4509
  1. 4
      api/controllers/chats.ts
  2. 4
      api/controllers/index.ts
  3. 2
      dist/api/controllers/chats.js
  4. 2
      dist/api/controllers/chats.js.map
  5. 4
      dist/api/controllers/index.js
  6. 2
      dist/api/controllers/index.js.map

4
api/controllers/chats.ts

@ -8,7 +8,7 @@ import { sendNotification } from '../hub'
import * as md5 from 'md5' import * as md5 from 'md5'
import * as path from 'path' import * as path from 'path'
import * as tribes from '../utils/tribes' import * as tribes from '../utils/tribes'
import {createTribeChatParams} from './chatTribes' import {replayChatHistory,createTribeChatParams} from './chatTribes'
const constants = require(path.join(__dirname,'../../config/constants.json')) const constants = require(path.join(__dirname,'../../config/constants.json'))
@ -250,7 +250,7 @@ async function receiveGroupJoin(payload) {
role: constants.chat_roles.reader, role: constants.chat_roles.reader,
lastActive: date, lastActive: date,
}) })
// replayChatHistory(chat, theSender) replayChatHistory(chat, theSender)
} }
} }

4
api/controllers/index.ts

@ -19,10 +19,6 @@ console.log("=> env:",env)
const constants = require(path.join(__dirname,'../../config/constants.json')) const constants = require(path.join(__dirname,'../../config/constants.json'))
async function set(app) { async function set(app) {
const chat = await models.Chat.findOne({where:{id:31}})
const contact = await models.Contact.findOne({where:{id:21}})
if(chat&&contact) chatTribes.replayChatHistory(chat,contact)
if(models && models.Subscription){ if(models && models.Subscription){
subcriptions.initializeCronJobs() subcriptions.initializeCronJobs()

2
dist/api/controllers/chats.js

@ -239,7 +239,7 @@ function receiveGroupJoin(payload) {
role: constants.chat_roles.reader, role: constants.chat_roles.reader,
lastActive: date, lastActive: date,
}); });
// replayChatHistory(chat, theSender) chatTribes_1.replayChatHistory(chat, theSender);
} }
} }
const msg = { const msg = {

2
dist/api/controllers/chats.js.map

File diff suppressed because one or more lines are too long

4
dist/api/controllers/index.js

@ -29,10 +29,6 @@ console.log("=> env:", env);
const constants = require(path.join(__dirname, '../../config/constants.json')); const constants = require(path.join(__dirname, '../../config/constants.json'));
function set(app) { function set(app) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const chat = yield models_1.models.Chat.findOne({ where: { id: 31 } });
const contact = yield models_1.models.Contact.findOne({ where: { id: 21 } });
if (chat && contact)
chatTribes.replayChatHistory(chat, contact);
if (models_1.models && models_1.models.Subscription) { if (models_1.models && models_1.models.Subscription) {
subcriptions.initializeCronJobs(); subcriptions.initializeCronJobs();
} }

2
dist/api/controllers/index.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save