tracking-exposed / trex

youtube & tiktok analysis + youchoose recommendation custmizer. backend, extensions, and tooling
https://docs.tracking.exposed
GNU Affero General Public License v3.0
55 stars 15 forks source link

fix(shared): omit '_id' field from metadata when upsert from parsing #855

Closed ascariandrea closed 1 year ago

ascariandrea commented 1 year ago

Summary

This solves a bug on yt:parser (and potentially tk:parser) where the metadata upsert failed for having _id in the update payload.

Changelog

fix(shared): omit '_id' field from metadata when upsert from parsing

Test Plan

docker-compose up -d mongo-yt-indexes
yarn pm2 start platforms/yttrex/backend/ecosystem.dev.config.js
yarn yt:ext watch
# in another pane
yarn pm2 logs
[...]

Load the extension in your browser and navigate in YT, you should have no errors.