Updating framework to meteor 3 and later

This commit is contained in:
Brian McGonagill 2025-06-21 07:28:59 -05:00
parent 717994508a
commit cca29bc591
58 changed files with 2332 additions and 1611 deletions

View file

@ -15,7 +15,7 @@ Meteor.methods({
'add.updateInfo' (updateObject) {
check(updateObject, Object);
UpdateInfo.insert({
return UpdateInfo.insertAsync({
title: updateObject.title,
description: updateObject.description,
dateRelease: updateObject.date,
@ -29,7 +29,7 @@ Meteor.methods({
throw new Meteor.Error('You are not allowed to mark updates as read. Make sure you are logged in with valid user credentials.');
}
return UpdateInfo.update({ _id: updateId }, {
return UpdateInfo.updateAsync({ _id: updateId }, {
$set: {
viewed: true
}