Skip to content

Commit

Permalink
fix: update per morgan
Browse files Browse the repository at this point in the history
  • Loading branch information
YazeedLoonat committed Feb 28, 2024
1 parent 5e817fa commit f98d24d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/services/application.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export class ApplicationService {
params: MostRecentApplicationQueryParams,
): Promise<Application> {
const rawApplication = await this.prisma.applications.findFirst({
select: {
id: true,
},
orderBy: { createdAt: 'desc' },
where: {
userId: params.userId,
Expand Down
3 changes: 3 additions & 0 deletions api/test/unit/services/application.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,9 @@ describe('Testing application service', () => {
mockedValue,
);
expect(prisma.applications.findFirst).toHaveBeenCalledWith({
select: {
id: true,
},
orderBy: { createdAt: 'desc' },
where: {
userId: 'example Id',
Expand Down

0 comments on commit f98d24d

Please sign in to comment.