Skip to content

Commit

Permalink
条件が逆
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha committed Oct 3, 2023
1 parent 765775e commit f89f977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const getLastNote = (notes:Array<Note>) => notes.slice(-1)[0];

const getNotes = async ():Promise<Array<Note>> => {
// EXPERIMENTAL_EXPERIMENTAL_USE_UNTILが有効時のみuntilを利用してTL取得
if (Config.Experimental.useUntil) return getNotesUsingSince()
if (Config.Experimental.useUntil) return getNotesUsingUntil()

return getNotesUsingUntil()
return getNotesUsingSince()
}

const getNotesUsingSince = async ():Promise<Array<Note>> => {
Expand Down

0 comments on commit f89f977

Please sign in to comment.