Skip to content

Commit

Permalink
unnecessary bulk operation api removed from the library
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Oct 25, 2017
1 parent 1cb58cf commit 0e49715
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/mem-server/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ export default function(options) {

return target;
},
bulkInsert(count, options) {
return Array.from({ length: count }).map(() => this.insert(options));
},
update(record) {
const targetRecord = record.id ? this.find(record.id) : this.findBy({ uuid: record.uuid });

Expand All @@ -99,10 +96,6 @@ export default function(options) {

return targetNamespace.MemServer.DB[this.modelName][targetIndex];
},
bulkUpdate(records) {
const targetRecord = record.id ? this.find(record.id) : this.findBy({ uuid: record.uuid });

},
delete(record) {
const models = targetNamespace.MemServer.DB[this.modelName] || [];

Expand All @@ -123,9 +116,6 @@ export default function(options) {
targetNamespace.MemServer.DB[this.modelName].splice(targetIndex, 1);

return targetRecord;
},
bulkDelete(records) {

},
serialize(objectOrArray) {

Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit 0e49715

Please sign in to comment.