Skip to content

Add UpdatedAt field to KeyDto#36

Merged
therealpaulgg merged 4 commits intomainfrom
claude/add-updatedat-keydto-ryLYE
Jan 15, 2026
Merged

Add UpdatedAt field to KeyDto#36
therealpaulgg merged 4 commits intomainfrom
claude/add-updatedat-keydto-ryLYE

Conversation

@therealpaulgg
Copy link
Owner

No description provided.

- Updated ssh-sync package to v1.2.2 which includes UpdatedAt field in KeyDto
- Added UpdatedAt timestamp field to SshKey model
- Updated all database queries to handle updated_at column:
  - CreateSshKey: Set updated_at to CURRENT_TIMESTAMP on insert
  - UpsertSshKey/UpsertSshKeyTx: Set updated_at on insert and update
- Updated KeyDto mapping to include UpdatedAt timestamp from SshKey model
- All builds and tests pass successfully

This change enables the server to provide timestamp information to clients,
allowing them to warn users when attempting to overwrite newer server keys
with older local versions.
@therealpaulgg therealpaulgg merged commit f654c6a into main Jan 15, 2026
1 check passed
@therealpaulgg therealpaulgg deleted the claude/add-updatedat-keydto-ryLYE branch January 15, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants