-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Org extension create #500
Org extension create #500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed on 22 Jan
|
||
static async create(data, options = {}) { | ||
try { | ||
const newOrgExtension = await OrganizationExtension.create(data, options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joffinjoy why is it not consistently camel case OrganizationExtension => organizationExtension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the standard that we have set for ourselves. All models will have starting letter as captials. It is the same for every other model.
New envs: EVENT_TYPE_CREATE='update' |
|
||
static async createOrgExtension(eventBody) { | ||
try { | ||
const extensionData = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joffinjoy can we use the eventBody Object to upsert, instead of accessing and storing the fields
|
||
exports.eventListenerRouter = async (eventBody, { createFn = null, updateFn = null, deleteFn = null }) => { | ||
try { | ||
switch (eventBody.eventType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joffinjoy for new event type we need to upset this ?
No description provided.