Skip to content

Commit afdd509

Browse files
authored
Merge pull request #262 from hypercerts-org/fix/ambiguous_metadata_id_error
Fix/ambiguous metadata id error
2 parents fed67a6 + f404a39 commit afdd509

File tree

1 file changed

+16
-34
lines changed

1 file changed

+16
-34
lines changed

src/services/SupabaseCachingService.ts

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -138,43 +138,25 @@ export class SupabaseCachingService extends BaseSupabaseService<CachingDatabase>
138138
case "fractions_view":
139139
return this.db.selectFrom("fractions_view").selectAll();
140140
case "metadata":
141-
// Skip the image column
142-
// 1. id
143-
// 2. name
144-
// 3. description
145-
// 4. image
146-
// 5. external_url
147-
// 6. work_scope
148-
// 7. work_timeframe_from
149-
// 8. work_timeframe_to
150-
// 9. impact_scope
151-
// 10. impact_timeframe_from
152-
// 11. impact_timeframe_to
153-
// 12. contributors
154-
// 13. rights
155-
// 14. uri
156-
// 15. properties
157-
// 16. allow_list_uri
158-
// 17. parsed
159141
return this.db
160142
.selectFrom("metadata")
161143
.select([
162-
"id",
163-
"name",
164-
"description",
165-
"external_url",
166-
"work_scope",
167-
"work_timeframe_from",
168-
"work_timeframe_to",
169-
"impact_scope",
170-
"impact_timeframe_from",
171-
"impact_timeframe_to",
172-
"contributors",
173-
"rights",
174-
"uri",
175-
"properties",
176-
"allow_list_uri",
177-
"parsed",
144+
"metadata.id",
145+
"metadata.name",
146+
"metadata.description",
147+
"metadata.external_url",
148+
"metadata.work_scope",
149+
"metadata.work_timeframe_from",
150+
"metadata.work_timeframe_to",
151+
"metadata.impact_scope",
152+
"metadata.impact_timeframe_from",
153+
"metadata.impact_timeframe_to",
154+
"metadata.contributors",
155+
"metadata.rights",
156+
"metadata.uri",
157+
"metadata.properties",
158+
"metadata.allow_list_uri",
159+
"metadata.parsed",
178160
])
179161
.$if(args.where?.hypercerts, (qb) =>
180162
qb.innerJoin("claims", "claims.uri", "metadata.uri"),

0 commit comments

Comments
 (0)