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