Skip to content

Commit

Permalink
feat(datatables): change bind to singelton
Browse files Browse the repository at this point in the history
  • Loading branch information
adityadarma committed Jan 9, 2025
1 parent ffab887 commit c6942e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: test
on:
- push
- pull_request
- workflow_call

jobs:
Expand Down
2 changes: 1 addition & 1 deletion providers/datatables_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class DatatablesProvider {
* Register bindings to the container
*/
register() {
this.app.container.bind('datatables', () => {
this.app.container.singleton('datatables', () => {
const engines: Record<string, any> = this.app.config.get(`datatables.engines`)

return new Datatables(engines)
Expand Down

0 comments on commit c6942e5

Please sign in to comment.