fix: refactor OaiController to improve error handling and enforce request validation
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 45s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 45s
This commit is contained in:
parent
7e2f320b4f
commit
1b1c83e022
2 changed files with 27 additions and 13 deletions
|
|
@ -7,7 +7,7 @@ import User from '#models/user';
|
|||
import { SnakeCaseNamingStrategy } from '@adonisjs/lucid/orm';
|
||||
|
||||
export default class Activity extends BaseModel {
|
||||
public static namingStrategy = new SnakeCaseNamingStrategy();
|
||||
public static namingStrategy = new SnakeCaseNamingStrategy();
|
||||
public static primaryKey = 'id';
|
||||
public static table = 'activities';
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ export default class Activity extends BaseModel {
|
|||
// declare properties: Record<string, any> | null;
|
||||
|
||||
@column()
|
||||
declare properties: Record<string, any> | null;
|
||||
declare properties: Record<string, any> | null;
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
declare createdAt: DateTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue