Skip to content

Commit

Permalink
return track id
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner committed Sep 14, 2024
1 parent 5b9fb9a commit d499ade
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tracks/track-import.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@ export class TrackImportProcessor extends WorkerHost {
status: "Finalizing import",
})

await this.tracksService.create({
const track = await this.tracksService.create({
name: path.basename(job.data.filePath),
captureDate,
filePath: job.data.filePath,
fileHash: hash,
geometry: trackFeature.geometry as LineString,
})

return {}
return {
id: track.id,
}
}

private async getGpxData(filePath: string): Promise<FeatureCollection> {
Expand Down

0 comments on commit d499ade

Please sign in to comment.