Skip to content

Commit

Permalink
Merge pull request #180 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(column): remove camelCase parser
  • Loading branch information
jlenon7 authored Oct 6, 2024
2 parents dadb8c5 + 65a215e commit 7631bd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions src/models/annotations/Column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand All @@ -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,
Expand Down

0 comments on commit 7631bd0

Please sign in to comment.