fix: this "else" is unneeded
This commit is contained in:
parent
b87be1d938
commit
789d05bed3
@ -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 New Issue
Block a user