Skip to content

Commit

Permalink
assets writes
Browse files Browse the repository at this point in the history
  • Loading branch information
maamalama committed Jul 29, 2024
1 parent 72321cf commit adb76d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions valhalla/jawn/src/lib/db/ClickhouseWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export interface InsertRequestResponseVersioned {
version: number;
properties: Record<string, string>;
scores: Record<string, number>;
assets: Record<string, string>;
}
export type RequestResponseVersioned =
| InsertRequestResponseVersioned
Expand Down
3 changes: 3 additions & 0 deletions valhalla/jawn/src/lib/handlers/LoggingHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ export class LoggingHandler extends AbstractLogHandler {
provider: request.provider ?? null,
country_code: request.countryCode ?? null,
properties: context.processedLog.request.properties ?? {},
assets: context.processedLog.assets
? Object.fromEntries(context.processedLog.assets)
: {},
scores: {},
sign: 1,
version: 1,
Expand Down

0 comments on commit adb76d7

Please sign in to comment.