pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
11 stars 11 forks source link

Properly Update the `package` metadata during a new Version Publish #126

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

Resolves #97

This changes how we pass data to database.insertNewPackageVersion() and properly passes all data from the VCS service, since the object there was already built how we need to update the metadata field.

I've added the needed SQL statements to update this additional field, after they were removed when attempting to migrate away from keeping data in these fields. Should resolve the above issues, but will only work on new publishes, rather than fixing old ones