From 65a215e2d4405065753df0ad11b02e3878be7025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Sun, 6 Oct 2024 15:38:19 +0100 Subject: [PATCH] fix(column): remove camelCase parser --- package-lock.json | 4 ++-- package.json | 2 +- src/models/annotations/Column.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f2eb013..5fff09b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.4.1", diff --git a/package.json b/package.json index 972a633..c4c0669 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/database", - "version": "5.2.0", + "version": "5.3.0", "description": "The Athenna database handler for SQL/NoSQL.", "license": "MIT", "author": "João Lenon ", diff --git a/src/models/annotations/Column.ts b/src/models/annotations/Column.ts index ac2ebba..3babf92 100644 --- a/src/models/annotations/Column.ts +++ b/src/models/annotations/Column.ts @@ -10,8 +10,8 @@ import 'reflect-metadata' import { debug } from '#src/debug' +import { Options } from '@athenna/common' import { Annotation } from '#src/helpers/Annotation' -import { Options, String as AthennaString } from '@athenna/common' import type { ColumnOptions } from '#src/types/columns/ColumnOptions' /** @@ -24,7 +24,7 @@ export function Column( const hasSetName = !!options.name options = Options.create(options, { - name: AthennaString.toCamelCase(key), + name: key, type: Reflect.getMetadata('design:type', target, key), defaultTo: null, isPrimary: false,