Skip to content

Commit ab0760b

Browse files
committed
fix: Remove uneccessary global id resolving in access token resolver
1 parent 0c5678b commit ab0760b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ai/backend/manager/api/gql/model_deployment/model_deployment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ async def access_tokens(self, info: Info[StrawberryGQLContext]) -> AccessTokenCo
229229
),
230230
)
231231

232-
_, deployment_id = resolve_global_id(str(self._deployment_id))
233232
access_token_loader = DataLoader(
234233
apartial(AccessToken.batch_load_by_deployment_ids, info.context)
235234
)
236-
token_nodes: list[AccessToken] = await access_token_loader.load(deployment_id)
235+
token_nodes: list[AccessToken] = await access_token_loader.load(self._deployment_id)
237236

238237
edges = [
239238
AccessTokenEdge(node=token_node, cursor=str(token_node.id))

0 commit comments

Comments
 (0)