Skip to content

Instantly share code, notes, and snippets.

Avatar

Penn Su pencilcheck

View GitHub Profile
View gist:9e36462941e7fe66f7ed
eventSchema = new Schema(
key: String
title: String
url: String
category: String
calcpa_id: String
organization: String
description: String
location:
name: String
View gist:ea83f4268225b3e4359a
userSchema = new Schema(
key: String
preferred_email: String
email: String
access_code: String
local:
email: String
password: String
name: String
seeker_profile_filled_at: Date
View gist:4378e8f5f3fe9eae9919
backend_1 | Unhandled rejection TypeError: Cannot read property 'toLowerCase' of undefined
backend_1 | at lookup (/src/controllers/events.js:28:22)
backend_1 | at findSkills (/src/controllers/events.js:36:7)
backend_1 | at async.parallel.count (/src/controllers/events.js:663:13)
backend_1 | at /install/node_modules/async/lib/async.js:713:13
backend_1 | at async.forEachOf.async.eachOf (/install/node_modules/async/lib/async.js:233:13)
backend_1 | at _parallel (/install/node_modules/async/lib/async.js:712:9)
backend_1 | at Object.async.parallel (/install/node_modules/async/lib/async.js:726:9)
backend_1 | at eventMatch (/src/controllers/events.js:611:9)
backend_1 | at /src/controllers/events.js:789:7
View gist:0cc6dd427ec6ca9f2887
backend_1 | Unhandled rejection TypeError: Cannot read property 'toLowerCase' of undefined
backend_1 | at lookup (/src/controllers/events.js:28:22)
backend_1 | at findSkills (/src/controllers/events.js:36:7)
backend_1 | at async.parallel.count (/src/controllers/events.js:663:13)
backend_1 | at /install/node_modules/async/lib/async.js:713:13
backend_1 | at async.forEachOf.async.eachOf (/install/node_modules/async/lib/async.js:233:13)
backend_1 | at _parallel (/install/node_modules/async/lib/async.js:712:9)
backend_1 | at Object.async.parallel (/install/node_modules/async/lib/async.js:726:9)
backend_1 | at eventMatch (/src/controllers/events.js:611:9)
backend_1 | at /src/controllers/events.js:789:7
View gist:18574bec19d2e8e6cb61
backend_1 | at Async._drainQueue (/install/node_modules/bluebird/js/release/async.js:129:16)
backend_1 | at Async._drainQueues (/install/node_modules/bluebird/js/release/async.js:139:10)
backend_1 | at Immediate.Async.drainQueues [as _onImmediate] (/install/node_modules/bluebird/js/release/async.js:16:14)
backend_1 | at processImmediate [as _immediateCallback] (timers.js:367:17)
backend_1 |
backend_1 | Unhandled rejection ReferenceError: moment is not defined
backend_1 | at /src/controllers/events.js:975:28
backend_1 | at tryCatcher (/install/node_modules/bluebird/js/release/util.js:11:23)
backend_1 | at Promise._settlePromiseFromHandler (/install/node_modules/bluebird/js/release/promise.js:489:31)
backend_1 | at Promise._settlePromise (/install/node_modules/bluebird/js/release/promise.js:546:18)
View gist:80dbb4215805ab0aa677
backend_1 | TypeError: undefined is not a function
backend_1 | at /src/controllers/events.js:857:271
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at param (/install/node_modules/express/lib/router/index.js:349:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | at Function.process_params (/install/node_modules/express/lib/router/index.js:410:3)
View gist:1b326db885fa40c5f09d
backend_1 | Unhandled rejection Error
backend_1 | at MongooseError.ValidationError (/install/node_modules/mongoose/lib/error/validation.js:22:16)
backend_1 | at model.Document.invalidate (/install/node_modules/mongoose/lib/document.js:1256:32)
backend_1 | at model.Document.set (/install/node_modules/mongoose/lib/document.js:621:10)
backend_1 | at model.Document.set (/install/node_modules/mongoose/lib/document.js:502:18)
backend_1 | at model.Document (/install/node_modules/mongoose/lib/document.js:62:10)
backend_1 | at model.Model (/install/node_modules/mongoose/lib/model.js:43:12)
backend_1 | at new model (/install/node_modules/mongoose/lib/model.js:2808:11)
backend_1 | at /install/node_modules/mongoose/lib/model.js:1622:10
backend_1 | at /install/node_modules/mongoose/node_modules/async/lib/async.js:570:21
View gist:15cc186da31909566a45
backend_1 | message: 'Event validation failed',
backend_1 | name: 'ValidationError',
backend_1 | errors:
backend_1 | { nonmemberprice:
backend_1 | { [CastError: Cast to Number failed for value "NaN" at path "nonmemberprice"]
backend_1 | stack: 'Error\n at MongooseError.CastError (/install/node_modules/mongoose/lib/error/cast.js:18:16)\n at model.Document.set (/install/node_modules/mongoose/lib/document.js:622:7)\n at model.Document.set (/install/node_modules/mongoose/lib/document.js:502:18)\n at model.Document (/install/node_modules/mongoose/lib/document.js:62:10)\n at model.Model (/install/node_modules/mongoose/lib/model.js:43:12)\n at new model (/install/node_modules/mongoose/lib/model.js:2808:11)\n at /install/node_modules/mongoose/lib/model.js:1622:10\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:570:21\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:249:17\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:125:13\
View gist:6f9399d3348660038cf8
backend_1 | objectives: [ '<p>Upon completion of this course you will be able to identify:</p>\n<ul>\n <li>special purpose frameworks, as well as GAAP frameworks;</li>\n <li>the primary differences between the frameworks;</li>\n <li>the situations in which use of each framework might be useful;</li>\n <li>the risks to a company and its independent accountants associated with each framework; and</li>\n <li>the ways that framework selection impacts financial statements, including disclosures, and&nbsp;impacts compilations and reviews.</li>\n</ul>' ],
backend_1 | curriculum:
backend_1 | [ ' Accounting and Financial Statements',
backend_1 | ' Auditing',
backend_1 | ' Business and Industry',
backend_1 | ' Finance',
backend_1 | ' Financial Management and Controllership',
backend_1 | ' Financial Leadership Forum' ] }
backend_1 | TypeError: string is not a function
backend_1 | at Object.<anonymous> (/src/models/attendee.coffee:25:30)
View gist:e9d823a40e80168d6010
backend_1 | ReferenceError: params is not defined
backend_1 | at /src/controllers/attendees.js:843:17
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at param (/install/node_modules/express/lib/router/index.js:349:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
You can’t perform that action at this time.