Skip to content

Commit cb2a471

Browse files
committed
Use sqliteBooleanToBoolean for isDelete conversion
1 parent 42a4c83 commit cb2a471

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/common/src/local-first/Evolu.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
isSqlMutation,
1818
SafeSql,
1919
SqliteBoolean,
20+
sqliteBooleanToBoolean,
2021
SqliteError,
2122
SqliteQuery,
2223
} from "../Sqlite.js";
@@ -735,7 +736,9 @@ const createEvoluInstance =
735736
id,
736737
values,
737738
isInsert: kind === "insert" || kind === "upsert",
738-
isDelete: SqliteBoolean.is(isDeleted) ? Boolean(isDeleted) : null,
739+
isDelete: SqliteBoolean.is(isDeleted)
740+
? sqliteBooleanToBoolean(isDeleted)
741+
: null,
739742
};
740743

741744
assert(

0 commit comments

Comments
 (0)