mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-11 15:08:36 +02:00
order by budget id
This commit is contained in:
@@ -51,7 +51,7 @@ export async function listAiBudgetsForModel(
|
||||
.select()
|
||||
.from(aiBudgets)
|
||||
.where(eq(aiBudgets.modelId, modelId))
|
||||
.orderBy(asc(aiBudgets.unit), asc(aiBudgets.period));
|
||||
.orderBy(asc(aiBudgets.budgetId));
|
||||
|
||||
return response<ListAiBudgetsByScopeResponse>(res, {
|
||||
data: { budgets },
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function listAiBudgetsForProvider(
|
||||
.select()
|
||||
.from(aiBudgets)
|
||||
.where(eq(aiBudgets.providerId, providerId))
|
||||
.orderBy(asc(aiBudgets.unit), asc(aiBudgets.period));
|
||||
.orderBy(asc(aiBudgets.budgetId));
|
||||
|
||||
return response<ListAiBudgetsByScopeResponse>(res, {
|
||||
data: { budgets },
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function listAiBudgetsForResource(
|
||||
.select()
|
||||
.from(aiBudgets)
|
||||
.where(eq(aiBudgets.resourceId, resourceId))
|
||||
.orderBy(asc(aiBudgets.unit), asc(aiBudgets.period));
|
||||
.orderBy(asc(aiBudgets.budgetId));
|
||||
|
||||
return response<ListAiBudgetsByScopeResponse>(res, {
|
||||
data: { budgets },
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function listAiBudgetsForRole(
|
||||
.select()
|
||||
.from(aiBudgets)
|
||||
.where(eq(aiBudgets.roleId, roleId))
|
||||
.orderBy(asc(aiBudgets.unit), asc(aiBudgets.period));
|
||||
.orderBy(asc(aiBudgets.budgetId));
|
||||
|
||||
return response<ListAiBudgetsByScopeResponse>(res, {
|
||||
data: { budgets },
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function listAiBudgetsForSiteResource(
|
||||
.select()
|
||||
.from(aiBudgets)
|
||||
.where(eq(aiBudgets.siteResourceId, siteResourceId))
|
||||
.orderBy(asc(aiBudgets.unit), asc(aiBudgets.period));
|
||||
.orderBy(asc(aiBudgets.budgetId));
|
||||
|
||||
return response<ListAiBudgetsByScopeResponse>(res, {
|
||||
data: { budgets },
|
||||
|
||||
Reference in New Issue
Block a user