Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(activities): changes variable camelCase to snake_case #14

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/internal/core/entity/interface.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface FindAll {
isToday: boolean
is_today: boolean
}
2 changes: 1 addition & 1 deletion src/internal/core/entity/schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Joi from 'joi'

export const FindAll = Joi.object({
isToday: Joi.boolean().optional(),
is_today: Joi.boolean().optional(),
})
2 changes: 1 addition & 1 deletion src/internal/core/usecase/usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Usecase {
private getFilters(query: FindAll) {
let filters = {}

if (query.isToday) {
if (query.is_today) {
const today = DateTime.now().toISODate()
filters = Object.assign(filters, {
date: new Date(today),
Expand Down