Skip to content

Commit a80c062

Browse files
authored
fix: Update Build updatedAt on patch (#5098)
## Description tested ``` select "createdAt", "updatedAt" from "Build" where "projectId" = '2d1d1e10-c20b-4061-a02a-ee570179c60c'; ``` Result ``` 2025-03-10 18:06:45.848+00 | 2025-04-05 10:55:58.263+00 ``` ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent 42a4956 commit a80c062

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/builder/app/routes/rest.patch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ export const action = async ({
316316
const dbBuildData: Database["public"]["Tables"]["Build"]["Update"] = {
317317
version: clientVersion + 1,
318318
lastTransactionId,
319+
updatedAt: new Date().toISOString(),
319320
};
320321

321322
if (buildData.pages) {

0 commit comments

Comments
 (0)