Skip to content

Commit

Permalink
no count
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed May 5, 2023
1 parent 1ccdd99 commit 25921f6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions modules/ApiFunctions/MemberEndPoints.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { jsonify, authenticateToken } from "./Helpers";
import Rank from "../../islander/profile";
import { Reward } from ".prisma/client";

export function memberEndPoints(app) {
let apiPrefix = "/members/";
Expand Down Expand Up @@ -72,18 +71,13 @@ export function memberEndPoints(app) {
visible: true,
},
select: {
rewardId: true,
title: true,
description: true,
price: true,
imageUrl: true,
RewardID: true,
Title: true,
Description: true,
Price: true,
imageurl: true,
nonSalePrice: true,
_count: {
select: {
RewardItem: true,
},
},
} as any,
},
});

return res.send(jsonify(shopItems));
Expand Down

0 comments on commit 25921f6

Please sign in to comment.