Skip to content

Instantly share code, notes, and snippets.

orangejuice fmoessle

Block or report user

Report or block fmoessle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hooks.js
const { disallow } = require('feathers-hooks-common')
module.exports = {
before: {
all: [],
find: [],
get: [
disallow()
],
create: [
View index.js
sendRatingMailQueue.process(async job => {
await sendRatingMailTo(job.data.email)
})
View index.js
const data = {
email: 'foo@bar.com'
}
const options = {
delay: 86400000,
attempts: 3
}
sendRatingMailQueue.add(data, options)
View index.js
import Queue from 'bull'
const sendRatingMailQueue = new Queue('sendRatingMail', {
redis: {
host: '127.0.0.1',
port: 6379
}
})
You can’t perform that action at this time.