Skip to content

Commit

Permalink
add support for multiple automated models per domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonrm committed Oct 19, 2022
1 parent 52a6bba commit 70f8b1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/adapters/datasources/datasource-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import DataSource from '../../domain/datasource'
* Temporary in-memory storage.
*/
export class DataSourceMemory extends DataSource {
constructor (map, factory, name) {
super(map, factory, name)
constructor(map, factory, name, options) {
super(map, factory, name, options)
this.className = DataSourceMemory.name
}

Expand All @@ -22,7 +22,7 @@ export class DataSourceMemory extends DataSource {
* @param {*} sync - sync cluster nodes, true by default
* @returns
*/
async save (id, data, sync = true) {
async save(id, data, sync = true) {
if (sync && process.send === 'function') {
/** send data to cluster members */
process.send({
Expand All @@ -39,7 +39,7 @@ export class DataSourceMemory extends DataSource {
/**
* @override
*/
async delete (id, sync = true) {
async delete(id, sync = true) {
if (sync && process.send === 'function') {
process.send({
cmd: 'deleteBroadcast',
Expand Down

0 comments on commit 70f8b1c

Please sign in to comment.