appwrite-utils
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -15,7 +15,3 @@ import { stringAttributeSchema } from "../schemas/stringAttribute.js"; | ||
if (attribute.default !== undefined) { | ||
if (attribute.array && attribute.default === null) { | ||
attributeToParse.xdefault = []; | ||
delete attributeToParse.default; | ||
} | ||
else if (attribute.default !== null) { | ||
if (attribute.default !== null) { | ||
attributeToParse.xdefault = attribute.default; | ||
@@ -22,0 +18,0 @@ delete attributeToParse.default; |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -24,6 +24,3 @@ import { ID, IndexType, Permission } from "node-appwrite"; | ||
if (attribute.default !== undefined) { | ||
if (attribute.array && attribute.default === null) { | ||
attributeToParse.xdefault = []; | ||
delete attributeToParse.default; | ||
} else if (attribute.default !== null) { | ||
if (attribute.default !== null) { | ||
attributeToParse.xdefault = attribute.default; | ||
@@ -30,0 +27,0 @@ delete attributeToParse.default; |
325078
8565