From bb8e730ceea2a09d7a2636605d859e8f053fcb31 Mon Sep 17 00:00:00 2001 From: Dadiorchen Date: Sat, 20 May 2023 16:30:04 +0800 Subject: [PATCH] fix: remove `v2` and let's the client to decide the version number --- server/models/GrowerAccount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/GrowerAccount.ts b/server/models/GrowerAccount.ts index 242c67f4..9f797b5e 100644 --- a/server/models/GrowerAccount.ts +++ b/server/models/GrowerAccount.ts @@ -51,7 +51,7 @@ function getByName( function getGrowerAccountLinks(planter) { const links = { - featured_trees: `/v2/trees?planter_id=${planter.id}&limit=20&offset=0`, + featured_trees: `/trees?planter_id=${planter.id}&limit=20&offset=0`, associated_organizations: `/organizations?planter_id=${planter.id}&limit=20&offset=0`, species: `/species?planter_id=${planter.id}&limit=20&offset=0`, };