Fixed small bugs
This commit is contained in:
parent
24e44e1607
commit
a0357f23bb
@ -311,7 +311,7 @@ Meteor.methods({
|
|||||||
});
|
});
|
||||||
} else if (authorized.indexOf(Meteor.userId()) != -1) {
|
} else if (authorized.indexOf(Meteor.userId()) != -1) {
|
||||||
if (change.name.length <= 50 && change.description.length <= 150 && worktype.indexOf(change.type) != -1) {
|
if (change.name.length <= 50 && change.description.length <= 150 && worktype.indexOf(change.type) != -1) {
|
||||||
Meteor.update({
|
work.update({
|
||||||
_id: change._id
|
_id: change._id
|
||||||
}, {
|
}, {
|
||||||
$set: {
|
$set: {
|
||||||
@ -328,8 +328,8 @@ Meteor.methods({
|
|||||||
_id: change._id
|
_id: change._id
|
||||||
}).creator) {
|
}).creator) {
|
||||||
if (change.name.length <= 50 && worktype.indexOf(change.type) != -1 &&
|
if (change.name.length <= 50 && worktype.indexOf(change.type) != -1 &&
|
||||||
input.dueDate instanceof Date && input.dueDate.getTime() >= ref) {
|
change.dueDate instanceof Date && change.dueDate.getTime() >= ref) {
|
||||||
Meteor.update({
|
work.update({
|
||||||
_id: change._id
|
_id: change._id
|
||||||
}, {
|
}, {
|
||||||
$set: {
|
$set: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user