mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating framework to meteor 3 and later
This commit is contained in:
parent
717994508a
commit
cca29bc591
58 changed files with 2332 additions and 1611 deletions
|
|
@ -19,7 +19,7 @@ Meteor.methods({
|
|||
throw new Meteor.Error('You are not allowed to add stores. Make sure you are logged in with valid user credentials.');
|
||||
}
|
||||
|
||||
return Stores.insert({
|
||||
return Stores.insertAsync({
|
||||
storeName: storeName,
|
||||
owner: this.userId,
|
||||
});
|
||||
|
|
@ -32,7 +32,7 @@ Meteor.methods({
|
|||
throw new Meteor.Error('You are not allowed to edit stores. Make sure you are logged in with valid user credentials.');
|
||||
}
|
||||
|
||||
return Stores.update({ _id: storeId }, {
|
||||
return Stores.updateAsync({ _id: storeId }, {
|
||||
$set: {
|
||||
storeName: storeName,
|
||||
}
|
||||
|
|
@ -45,6 +45,6 @@ Meteor.methods({
|
|||
throw new Meteor.Error('You are not allowed to delete stores. Make sure you are logged in with valid user credentials.');
|
||||
}
|
||||
|
||||
return Stores.remove({ _id: storeId });
|
||||
return Stores.removeAsync({ _id: storeId });
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue