Skip to content

Commit

Permalink
fix(drizzle): add orderBy for voices SELECT query
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondThundeR committed Aug 22, 2024
1 parent 19ebe77 commit b63f08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drizzle/queries/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export async function getVoices(query?: SelectVoice["voiceTitle"]) {
return await db
.select()
.from(voicesTable)
.where(query ? ilike(voicesTable.voiceTitle, `%${query}%`) : undefined);
.where(query ? ilike(voicesTable.voiceTitle, `%${query}%`) : undefined)
.orderBy(voicesTable.voiceTitle);
}

export async function getUserIsIgnoredStatus(userId: SelectUser["userId"]) {
Expand Down

0 comments on commit b63f08d

Please sign in to comment.