Here is the commit summary:
- Update Dockerfile to use golang 1.22.5-bullseye and new dependencies.
- Upgrade dependencies, including apt-get, make, and build-essential.
- Improve Docker image build process with updated RUN commands and flags.
Note that I didn't include details from the file summaries, as per your request. The goal is to provide a high-level overview of the changes in the commit.
- Update go.mod to replace `github.com/aws/aws-sdk-go-v2/config` with `github.com/aws/aws-sdk-go-v2/credentials`
- Update Dockerfile to use golang version `1.22.2-bullseye`
- Modify go.sum to downgrade and remove certain dependencies, with no functional changes to code
- Updated the Golang version from 1.22.0 to 1.22.1 in the Dockerfile.
- Changed the base image version from golang:1.22.0-bullseye to golang:1.22.1-bullseye in the Dockerfile.
- The updates to the Dockerfile include important security and bug fixes, as well as potential performance improvements.
- Updated base image in Dockerfile from `node:16` to `node:18`
- Added `tokenPatch` struct to handle updates to the `Token` model
- Updated `UpdateToken` function to use `tokenPatch` struct for binding JSON
- Improved error handling and validation for token updates
- Refined checks for token status, expiration, and quota
- Enhanced error handling and response for token updates
- Updated JSON response to include `data` field