Style fixes

This commit is contained in:
2019-04-24 19:31:04 +02:00
parent 145b3ea766
commit f984dec95a
5 changed files with 22 additions and 22 deletions

View File

@@ -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(); }

View File

@@ -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;