mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Remove relevant console log,
This commit is contained in:
@@ -22,12 +22,12 @@ export class JsonStore {
|
||||
|
||||
.then(function () {
|
||||
WL.Logger.debug('Init done');
|
||||
console.log('Init done');
|
||||
|
||||
return WL.JSONStore.get(collectionName).add(data, addOptions);
|
||||
|
||||
}).fail(function (err) {
|
||||
WL.Logger.error(err);
|
||||
console.log(err)
|
||||
|
||||
});
|
||||
|
||||
} */
|
||||
@@ -51,16 +51,16 @@ export class JsonStore {
|
||||
/* WL.JSONStore.init(JSONStoreCollections)
|
||||
.then(function () {
|
||||
WL.Logger.debug('Find all colletion data');
|
||||
console.log('Find all colletion data');
|
||||
|
||||
|
||||
|
||||
}).fail(function (err) {
|
||||
WL.Logger.error(err);
|
||||
console.log("JsonStore getColletion error ",err)
|
||||
|
||||
});
|
||||
|
||||
const data = WL.JSONStore.get(collectionName).findAll(allOptions).then((value) => {
|
||||
console.log('Find all colletion data', value);
|
||||
|
||||
return JSON.parse(value);
|
||||
});
|
||||
|
||||
@@ -91,14 +91,14 @@ export class JsonStore {
|
||||
/* WL.JSONStore.init(JSONStoreCollections)
|
||||
.then(function () {
|
||||
WL.Logger.debug('Find colletion data by id');
|
||||
console.log('Find colletion data by id');
|
||||
|
||||
|
||||
return WL.JSONStore.get(collectionName).find(query, allOptions).then((value) => {
|
||||
console.log('Find colletion data by id', value);
|
||||
|
||||
});
|
||||
}).fail(function (err) {
|
||||
WL.Logger.error(err);
|
||||
console.log(err)
|
||||
|
||||
}); */
|
||||
|
||||
}
|
||||
@@ -110,9 +110,9 @@ export class JsonStore {
|
||||
var options = {};
|
||||
|
||||
/* WL.JSONStore.get(collectionName).replace(document, options).then(function (numberOfDocsReplaced) {
|
||||
console.log("JsonStore replace document sucess: ", numberOfDocsReplaced)
|
||||
|
||||
}).fail(function (error) {
|
||||
console.log("JsonStore replace document error: ", error)
|
||||
|
||||
}); */
|
||||
}
|
||||
|
||||
@@ -120,9 +120,9 @@ export class JsonStore {
|
||||
/* var query = { _id: 1 }; Exemple of query
|
||||
var options = { exact: true };
|
||||
/* WL.JSONStore.get(collectionName).remove(query, options).then(function (numberOfDocsRemoved) {
|
||||
console.log("JsonStore remove document sucess: ", numberOfDocsRemoved)
|
||||
|
||||
}).fail(function (error) {
|
||||
console.log("JsonStore remove document erro: ", error)
|
||||
|
||||
}); */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user