Skip to content

Commit

Permalink
feat(): add buffer to built-in types array
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 16, 2021
1 parent 6f94d91 commit b5b0f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factories/definitions.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as mongoose from 'mongoose';
import { PropOptions } from '../decorators';
import { TypeMetadataStorage } from '../storages/type-metadata.storage';

const BUILT_IN_TYPES: Function[] = [Boolean, Number, String, Map, Date];
const BUILT_IN_TYPES: Function[] = [Boolean, Number, String, Map, Date, Buffer];

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

0 comments on commit b5b0f30

Please sign in to comment.