diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-02-20 11:38:45 -0500 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-02-20 11:38:45 -0500 |
commit | 7cbf63ed6fa7517d5b80fba50529544e0cf1d625 (patch) | |
tree | c454b3c0adc21d0fa444a801b4e477086afb1147 /src/fields/Schema.ts | |
parent | ec18ae95005b9adc674a1ed6c3e976aa987ed7d2 (diff) |
unrelated
Diffstat (limited to 'src/fields/Schema.ts')
-rw-r--r-- | src/fields/Schema.ts | 2 |
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); } }; } |