fix: this "else" is unneeded

This commit is contained in:
naskya 2023-09-30 18:50:05 +09:00
parent b87be1d938
commit 789d05bed3
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139

View File

@ -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,
});