@powerhousedao/vetra-builder-package 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -135,8 +135,9 @@ export const getResolvers = (subgraph) => {
|
|
|
135
135
|
members: [], // Will be resolved by field resolver
|
|
136
136
|
}));
|
|
137
137
|
},
|
|
138
|
-
fetchBuilderTeam: async (parent, args) => {
|
|
138
|
+
fetchBuilderTeam: async (parent, args, context) => {
|
|
139
139
|
const driveId = args.driveId || DEFAULT_DRIVE_ID;
|
|
140
|
+
context.driveId = driveId;
|
|
140
141
|
const account = await VetraBuilderRelationalDbProcessor.query(driveId, db)
|
|
141
142
|
.selectFrom("builder_teams")
|
|
142
143
|
.selectAll()
|
|
@@ -161,6 +162,8 @@ export const getResolvers = (subgraph) => {
|
|
|
161
162
|
createdAt: account.created_at.toISOString(),
|
|
162
163
|
updatedAt: account.updated_at.toISOString(),
|
|
163
164
|
driveId: driveId, // Pass driveId to field resolvers
|
|
165
|
+
spaces: [], // Will be resolved by field resolver
|
|
166
|
+
members: [], // Will be resolved by field resolver
|
|
164
167
|
};
|
|
165
168
|
},
|
|
166
169
|
},
|