forked from apxtri/apxtri
fix itm update on apxid
This commit is contained in:
parent
92132e4ae7
commit
62a75d353e
@ -658,7 +658,7 @@ Odmdb.cud = (objectPathname, crud, itm, role, runindex = true) => {
|
|||||||
if (crud == "U" && accessright.U.length > 0) {
|
if (crud == "U" && accessright.U.length > 0) {
|
||||||
itmtostore = itmold;
|
itmtostore = itmold;
|
||||||
const keynotallow = Object.keys(itm).filter(
|
const keynotallow = Object.keys(itm).filter(
|
||||||
(el) => !accessright.U.includes(el)
|
(el) => !(el==getschema.data.schema.apxid || accessright.U.includes(el))
|
||||||
);
|
);
|
||||||
if (keynotallow.length > 0) {
|
if (keynotallow.length > 0) {
|
||||||
feedbackinfo.keynotallow = keynotallow;
|
feedbackinfo.keynotallow = keynotallow;
|
||||||
@ -704,7 +704,7 @@ Odmdb.cud = (objectPathname, crud, itm, role, runindex = true) => {
|
|||||||
fs.ensureDirSync(`${objectPathname}/img/`);
|
fs.ensureDirSync(`${objectPathname}/img/`);
|
||||||
//console.log("check this for k:", k, " itmtostore[k]:", itmtostore[k]);
|
//console.log("check this for k:", k, " itmtostore[k]:", itmtostore[k]);
|
||||||
const imgb64 = itmtostore[k].replace(
|
const imgb64 = itmtostore[k].replace(
|
||||||
/^data:image\/(png|png|gif|bmp|jpg|jpeg);base64,/,
|
/^data:image\/(png|gif|bmp|jpg|jpeg);base64,/,
|
||||||
""
|
""
|
||||||
); //.replace(/\+/g," ");
|
); //.replace(/\+/g," ");
|
||||||
const extension = itmtostore[k].split(";base64,")[0].split("/")[1];
|
const extension = itmtostore[k].split(";base64,")[0].split("/")[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user