forked from FoundKeyGang/FoundKey
server: use host parameter in note search without elasticsearch
Changelog: Fixed
This commit is contained in:
parent
4183c429e6
commit
7ffe2181a9
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
|
|
||||||
if (ps.userId) {
|
if (ps.userId) {
|
||||||
query.andWhere('note.userId = :userId', { userId: ps.userId });
|
query.andWhere('note.userId = :userId', { userId: ps.userId });
|
||||||
|
} else if (ps.host) {
|
||||||
|
query.andWhere('note.userHost = :host', { host: ps.host });
|
||||||
} else if (ps.channelId) {
|
} else if (ps.channelId) {
|
||||||
query.andWhere('note.channelId = :channelId', { channelId: ps.channelId });
|
query.andWhere('note.channelId = :channelId', { channelId: ps.channelId });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue