Skip to content

Commit

Permalink
refactor: do not rely on @adonisjs/fold
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 14, 2020
1 parent 22cfe68 commit 08aa5bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion npm-audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5 class="card-title">
<div class="card">
<div class="card-body">
<h5 class="card-title">
October 14th 2020, 8:27:38 am
October 14th 2020, 9:20:42 am
</h5>
<p class="card-text">Last updated</p>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/Orm/BaseModel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import { DateTime } from 'luxon'
import equal from 'fast-deep-equal'
import { Hooks } from '@poppinss/hooks'
import { IocContract } from '@adonisjs/fold'
import { Exception, lodash } from '@poppinss/utils'
import { Ioc } from '@adonisjs/core/build/standalone'

import { QueryClientContract, TransactionClientContract } from '@ioc:Adonis/Lucid/Database'
import {
Expand Down Expand Up @@ -60,6 +60,7 @@ import {
managedTransaction,
normalizeCherryPickObject,
} from '../../utils'
import { IocContract } from '@ioc:Adonis/Core/Application'

const MANY_RELATIONS = ['hasMany', 'manyToMany', 'hasManyThrough']
const DATE_TIME_TYPES = {
Expand Down Expand Up @@ -95,7 +96,7 @@ export class BaseModel implements LucidRow {
* NOTE: Container is a singleton and share among all the models, unless
* a user wants to swap the container for a given model
*/
public static $container: IocContract
public static $container: Ioc

/**
* Primary key is required to build relationships across models
Expand Down

0 comments on commit 08aa5bc

Please sign in to comment.