mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 11:33:01 +00:00
Clean up
This commit is contained in:
parent
aad131c913
commit
bffd7bbb3b
1 changed files with 0 additions and 14 deletions
|
@ -123,20 +123,6 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|
||||||
// Register to search database
|
|
||||||
if (message.text && config.elasticsearch) {
|
|
||||||
const es = require('../../../db/elasticsearch');
|
|
||||||
|
|
||||||
es.index({
|
|
||||||
index: 'misskey',
|
|
||||||
type: 'messaging_message',
|
|
||||||
id: message._id.toString(),
|
|
||||||
body: {
|
|
||||||
text: message.text
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 履歴作成(自分)
|
// 履歴作成(自分)
|
||||||
History.update({
|
History.update({
|
||||||
userId: user._id,
|
userId: user._id,
|
||||||
|
|
Loading…
Reference in a new issue