CVEProject / cve-services

This repo contains the source for the CVE Services API.
Creative Commons Zero v1.0 Universal
150 stars 70 forks source link

Resolved issue #1258, adds feature to PUT /org/{shortname} to update new `last_active` field. #1262

Closed jack-flores closed 2 months ago

jack-flores commented 3 months ago

Closes Issue #1258

Summary

Adds a new field last_active to the Org schema, and updates this field to Date.now() when PUT /org/{shortname} is hit. Only a secretariat can use this endpoint to make changes to fields other than last_active.

Important Changes

src/controller/org.controller/index.js

src/controller/org.controller/org.controller.js

src/middleware/middleware.js

src/model/org.js

test/integration-tests/org/putOrgTest.js

Testing

Steps to manually test updated functionality

Notes