mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
13
backend/apis/nodejs/node_modules/knex/lib/util/finally-mixin.js
generated
vendored
Normal file
13
backend/apis/nodejs/node_modules/knex/lib/util/finally-mixin.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
const noop = require('./noop');
|
||||
|
||||
const finallyMixin = (prototype) =>
|
||||
Object.assign(prototype, {
|
||||
finally(onFinally) {
|
||||
return this.then().finally(onFinally);
|
||||
},
|
||||
});
|
||||
|
||||
// FYI: Support for `Promise.prototype.finally` was not introduced until Node 9.
|
||||
// Therefore, Knex will need to conditionally inject support for `.finally(..)`
|
||||
// until support for Node 8 is officially dropped.
|
||||
module.exports = Promise.prototype.finally ? finallyMixin : noop;
|
Reference in New Issue
Block a user