Skip to content

Commit

Permalink
use tokenProps to upload tiles (backport #7178) [release/4.9.x] (#7179)
Browse files Browse the repository at this point in the history
Co-authored-by: Paulius Valiūnas <[email protected]>
  • Loading branch information
mergify[bot] and paulius-valiunas authored Sep 20, 2024
1 parent f943c8a commit c8f8a96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-backend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-backend"
}
2 changes: 1 addition & 1 deletion core/backend/src/rpc-impl/IModelTileRpcImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async function getTileContent(props: TileContentRequestProps): Promise<TileConte
tileGenerationTime: tile.elapsedSeconds.toString(),
tileSize: tile.content.byteLength.toString(),
};
await IModelHost.tileStorage?.uploadTile(db.iModelId, db.changeset.id, props.treeId, props.contentId, tile.content, props.guid, tileMetadata);
await IModelHost.tileStorage?.uploadTile(props.tokenProps.iModelId ?? db.iModelId, props.tokenProps.changeset?.id ?? db.changeset.id, props.treeId, props.contentId, tile.content, props.guid, tileMetadata);
const { accessToken: _, ...safeProps } = props;
Logger.logInfo(BackendLoggerCategory.IModelTileRequestRpc, "Generated and uploaded tile", { tileMetadata, ...safeProps });

Expand Down

0 comments on commit c8f8a96

Please sign in to comment.