Skip to content

Commit b5b0f30

Browse files
feat(): add buffer to built-in types array
1 parent 6f94d91 commit b5b0f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/factories/definitions.factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as mongoose from 'mongoose';
44
import { PropOptions } from '../decorators';
55
import { TypeMetadataStorage } from '../storages/type-metadata.storage';
66

7-
const BUILT_IN_TYPES: Function[] = [Boolean, Number, String, Map, Date];
7+
const BUILT_IN_TYPES: Function[] = [Boolean, Number, String, Map, Date, Buffer];
88

99
export class DefinitionsFactory {
1010
static createForClass(target: Type<unknown>): mongoose.SchemaDefinition {

0 commit comments

Comments
 (0)