From 16f03afa844548ef17cfd87265720dd192c5f32f Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 17 Aug 2024 14:07:50 +0800 Subject: [PATCH 1/2] fix: fix insert attachments --- apps/backend/src/modules/file/file.ts | 2 +- packages/persistence/src/record/record.mutate-visitor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/modules/file/file.ts b/apps/backend/src/modules/file/file.ts index e9f1de677..86868a7b3 100644 --- a/apps/backend/src/modules/file/file.ts +++ b/apps/backend/src/modules/file/file.ts @@ -47,7 +47,7 @@ export class FileService { url, size, mime_type: mimeType, - created_at: new Date(), + created_at: new Date().getTime(), created_by: getCurrentUserId(), space_id: mustGetCurrentSpaceId(), name: fileName, diff --git a/packages/persistence/src/record/record.mutate-visitor.ts b/packages/persistence/src/record/record.mutate-visitor.ts index d1b6e8224..f1d206da2 100644 --- a/packages/persistence/src/record/record.mutate-visitor.ts +++ b/packages/persistence/src/record/record.mutate-visitor.ts @@ -108,7 +108,7 @@ export class RecordMutateVisitor extends AbstractQBMutationVisitor implements IR return { size: value.size, url: value.url, - created_at: new Date(), + created_at: new Date().getTime(), created_by: userId, space_id: spaceId, id: value.id, From 5bc973cebeaa7c57ce8c3976246e6edc0ec2de37 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Sat, 17 Aug 2024 06:09:08 +0000 Subject: [PATCH 2/2] Prepare release v1.0.0-18 --- CHANGELOG.md | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d2d90e35..ca49e09fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Changelog +## v1.0.0-18 + + +### 🩹 Fixes + +- Fix insert attachments ([16f03af](https://github.com/undb-io/undb/commit/16f03af)) + +### ❤️ Contributors + +- Nichenqin ([@nichenqin](http://github.com/nichenqin)) + ## v1.0.0-17 diff --git a/package.json b/package.json index 3857745f4..45d854f21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "undb", - "version": "1.0.0-17", + "version": "1.0.0-18", "private": true, "scripts": { "build": "NODE_ENV=production bun --bun turbo build",