Skip to content

Commit

Permalink
Merge pull request #2040 from undb-io/release/v1.0.0-77
Browse files Browse the repository at this point in the history
Release version v1.0.0-77
  • Loading branch information
nichenqin authored Sep 18, 2024
2 parents 5e6a49f + 5bd5ae4 commit 38f01cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v1.0.0-77


### 🩹 Fixes

- Fix import data with null value ([6da3a7c](https://github.com/undb-io/undb/commit/6da3a7c))

### ❤️ Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

## v1.0.0-76


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "undb",
"version": "1.0.0-76",
"version": "1.0.0-77",
"private": true,
"scripts": {
"build": "NODE_ENV=production bun --bun turbo build",
Expand Down
4 changes: 0 additions & 4 deletions packages/persistence/src/record/record.mutate-visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ export class RecordMutateVisitor extends AbstractQBMutationVisitor implements IR
private readonly eb: ExpressionBuilder<any, any>,
) {
super()
const mutableFields = this.table.schema.mutableFields
for (const field of mutableFields) {
this.setData(field.id.value, null)
}
}

idIn(spec: IdIn): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class RecordValuesVO extends ValueObject {
const values: RecordValues = {}

for (const field of fields) {
const value = dto[field.id.value] ?? dto[field.name.value]
const value = dto[field.id.value] ?? dto[field.name.value] ?? null
const fieldValue: Option<MutableFieldValue> = value === undefined ? None : FieldValueFactory.create(field, value)

let v: MutableFieldValue | undefined = undefined
Expand Down

0 comments on commit 38f01cb

Please sign in to comment.