Skip to content

Commit 32d5b25

Browse files
committed
Fix GetAllTechnologies
1 parent 0641ccf commit 32d5b25

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

TechStacks.Client/src/lib/api/gateway.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const getTechnology = async (slug: string) => {
135135

136136
export const getAllTechnologies = async () => {
137137
if (!allTechnologiesCache) {
138-
allTechnologiesCache = await client.get(new dtos.GetAllTechnologies(), { take:1000, include: 'total' });
138+
allTechnologiesCache = await client.get(new dtos.GetAllTechnologies(), { include: 'total' });
139139
}
140140
return allTechnologiesCache;
141141
};
@@ -146,12 +146,8 @@ export const queryTechnology = async (query: any) => {
146146

147147
export const getTechnologyTiers = async () => {
148148
if (technologyTiersCache) return technologyTiersCache;
149-
const request = new dtos.QueryTechnology();
150-
technologyTiersCache = (await client.get(request, {
151-
orderBy: 'tier,name',
152-
fields: 'id,name,tier,slug',
153-
jsconfig: 'edv'
154-
})).results;
149+
const request = new dtos.QueryTechnology({ take: 1000, fields: 'id,name,tier,slug', orderBy: 'tier,name' });
150+
technologyTiersCache = (await client.get(request, { jsconfig: 'edv' })).results;
155151
return technologyTiersCache;
156152
};
157153

TechStacks.ServiceInterface/TechnologyServices.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public object Get(GetAllTechnologies request)
3333
{
3434
return new GetAllTechnologiesResponse
3535
{
36-
Results = Db.Select(Db.From<Technology>().OrderByDescending(x => x.LastModified).Take(100)).ToList(),
36+
Results = Db.Select(Db.From<Technology>().OrderByDescending(x => x.LastModified)).ToList(),
3737
Total = Db.Count<Technology>(),
3838
};
3939
}

0 commit comments

Comments
 (0)