Skip to content

typo #2546

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

Closed
wants to merge 2 commits into from
Closed

typo #2546

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Routers/FunctionsRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class FunctionsRouter extends PromiseRouter {
});
resolve(result);
}, (error) => {
logger.error(`Failed running cloud function ${req.params.functionName} with:\nInput: ${JSON.stringify(params)}\Error: ${JSON.stringify(error)}`, {
logger.error(`Failed running cloud function ${req.params.functionName} with:\nInput: ${JSON.stringify(params)}\nError: ${JSON.stringify(error)}`, {
functionName: req.params.functionName,
params,
error
Expand Down
4 changes: 2 additions & 2 deletions src/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function logTriggerSuccess(triggerType, className, input, result) {
}

function logTriggerError(triggerType, className, input, error) {
logger.error(`${triggerType} failed for ${className}\nInput: ${JSON.stringify(input)}\Error: ${JSON.stringify(error)}`, {
logger.error(`${triggerType} failed for ${className}\nInput: ${JSON.stringify(input)}\nError: ${JSON.stringify(error)}`, {
className,
triggerType,
input,
Expand All @@ -187,7 +187,7 @@ function logTriggerError(triggerType, className, input, error) {
// Will resolve successfully if no trigger is configured
// Resolves to an object, empty or containing an object key. A beforeSave
// trigger will set the object key to the rest format object to save.
// originalParseObject is optional, we only need that for befote/afterSave functions
// originalParseObject is optional, we only need that for before/afterSave functions
export function maybeRunTrigger(triggerType, auth, parseObject, originalParseObject, config) {
if (!parseObject) {
return Promise.resolve({});
Expand Down