fix: this "else" is unneeded
This commit is contained in:
parent
b87be1d938
commit
789d05bed3
1 changed files with 4 additions and 2 deletions
|
@ -75,9 +75,11 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
ps.untilId,
|
||||
);
|
||||
|
||||
if (ps.userId) {
|
||||
if (ps.userId != null) {
|
||||
query.andWhere("note.userId = :userId", { userId: ps.userId });
|
||||
} else if (ps.channelId) {
|
||||
}
|
||||
|
||||
if (ps.channelId != null) {
|
||||
query.andWhere("note.channelId = :channelId", {
|
||||
channelId: ps.channelId,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue