Initial commit

This commit is contained in:
Brian McGonagill 2026-02-03 16:03:34 -06:00
parent 9ed5089508
commit 78e0e82449
16 changed files with 317 additions and 15 deletions

View file

@ -12,7 +12,7 @@ SysConfig.allow({
});
Meteor.methods({
'add.noSysAdminReg' (admReg, genReg) {
async 'add.noSysAdminReg' (admReg, genReg) {
check(admReg, Boolean);
check(genReg, Boolean);
@ -22,7 +22,7 @@ Meteor.methods({
console.log("Got here...");
console.log("Adding new.");
return SysConfig.upsertAsync({ ruleNo: 1 }, {
return await SysConfig.upsertAsync({ ruleNo: 1 }, {
$set: {
ruleNo: 1,
SysAdminReg: admReg,
@ -32,14 +32,14 @@ Meteor.methods({
}
});
},
'allow.updateInfo' (allowUpdate) {
async 'allow.updateInfo' (allowUpdate) {
check(allowUpdate, Boolean);
if (!this.userId) {
throw new Meteor.Error('Not able to change system update notification settings. Make sure you are logged in with valid system administrator credentials.');
}
return SysConfig.updateAsync({ ruleNo: 1 }, {
return await SysConfig.updateAsync({ ruleNo: 1 }, {
$set: {
allowUpdates: allowUpdate,
}