add a log to track img bug
This commit is contained in:
		| @@ -672,6 +672,7 @@ Odmdb.cud = (objectPathname, crud, itm, role, runindex = true) => { | |||||||
|       //Manage base64 case image to convert ans store in webp |       //Manage base64 case image to convert ans store in webp | ||||||
|       if (k.includes("imgbase64_") && itmtostore[k] != "") { |       if (k.includes("imgbase64_") && itmtostore[k] != "") { | ||||||
|         fs.ensureDirSync(`${objectPathname}/img/`); |         fs.ensureDirSync(`${objectPathname}/img/`); | ||||||
|  |         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|png|gif|bmp|jpg|jpeg);base64,/, | ||||||
|           "" |           "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user