Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/api/network/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) {
};

const network = await Database.network.findOne({
attributes: { exclude: ["id", "creatorAddress", "updatedAt"] },
attributes: { exclude: ["creatorAddress", "updatedAt"] },
include: [
{ association: "tokens" },
{ association: "curators" }
Expand Down
2 changes: 1 addition & 1 deletion pages/api/search/networks/active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) {

const networks = await models.network.findAll({
attributes: {
exclude: ["id", "creatorAddress"]
exclude: ["creatorAddress"]
},
where: whereCondition,
include,
Expand Down
2 changes: 1 addition & 1 deletion pages/api/search/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) {
let group: string[] = []

const attributes: { include?: (string | [Fn,string] | [Literal,string])[]; exclude: string[] } = {
exclude: ["creatorAddress", "id"]
exclude: ["creatorAddress"]
}

if (isNeedCountsAndTokensLocked) {
Expand Down