Style fixes
This commit is contained in:
@@ -63,7 +63,7 @@ class Contributor extends Record {
|
||||
|
||||
updateProfile (contributorId, updateAttr, callOptions = {}) {
|
||||
return this.getById(contributorId).then(async (contributor) => {
|
||||
let updatedContributorAttr = Object.assign(contributor, updateAttr)
|
||||
let updatedContributorAttr = Object.assign(contributor, updateAttr);
|
||||
let updatedContributor = new ContributorSerializer(updatedContributorAttr);
|
||||
|
||||
try { await updatedContributor.validate(); }
|
||||
|
||||
@@ -2,7 +2,7 @@ const Base = require('./base');
|
||||
const paged = require('../utils/pagination');
|
||||
|
||||
class Record extends Base {
|
||||
all(options = {}) {
|
||||
all (options = {}) {
|
||||
return this.count
|
||||
.then((count) => {
|
||||
let records = paged(count, options).map((id) => this.getById(id));
|
||||
@@ -11,4 +11,4 @@ class Record extends Base {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Record
|
||||
module.exports = Record;
|
||||
|
||||
Reference in New Issue
Block a user