enniel / adonis-notifications Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Error while sending notifications with Adonis notifications package.
Getting this error:
TypeError: notifiable.routeNotificationFor is not a function
at DatabaseChannel.send (C:\Users\Ethiel ADIASSA\Desktop\Projets\smartjobs\node_modules\adonis-notifications\src\Channels\DatabaseChannel.js:8:23)
i make sure everything is well set from my side.
this.app.bind('Adonis/Notifications/DatabaseNotification', () => {
return require('../src/DatabaseNotification')
})
this.app.alias('Adonis/Notifications/DatabaseNotification', 'DatabaseNotification')
When the DatabaseNotification model is initialized, the _bootIfNotBooted method is not called and an error is reported.
Thank you very much!
Thanks for such an awesome work. Is it possible i can use mongo as database. If yes can you please help and suggest me solution, or if you have any working code. I will really appreciate.
Thanks
You are passing id to Notification.create(), which is causing this. I can fix it if you want
sqlMessage: "Duplicate entry '4294967295' for key 'notifications.PRIMARY'",
sqlState: '23000',
index: 0,
sql: 'insert into notifications
(created_at
, data
, id
, notifiable_id
, notifiable_type
, type
, updated_at
) values ('2020-10-20 12:38:35', '{\"notifiedBy_id\":1,\"notifiedBy_name\":\"Prince Vishal\",\"message\":\"You owe 50 to Prince Vishal. This is a gentle reminder to pay back.\",\"split_id\":187,\"expense_id\":65}', 'df829d02-b1ee-4113-9cb2-64bb77e1a4da', 50, 'users', 'notify-to-pay', '2020-10-20 12:38:35')'
./ace run notifications:setup
How do i implement the above line of code please
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.