aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/Schema.ts')
-rw-r--r--src/fields/Schema.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Schema.ts b/src/fields/Schema.ts
index 4607e0fd5..e0fc5902b 100644
--- a/src/fields/Schema.ts
+++ b/src/fields/Schema.ts
@@ -68,7 +68,7 @@ export function makeInterface<T extends Interface[]>(...schemas: T): InterfaceFu
if (doc instanceof Doc || doc === undefined) {
return fn(doc || new Doc);
} else {
- return doc.map(fn);
+ if (!doc instanceof Promise) return doc.map(fn);
}
};
}