This commit is contained in:
Suvodip
2025-02-04 16:14:54 +05:30
parent 6d03408495
commit b69bc6200f
2 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ const FormData = require('form-data'); // Import form-data for Node.js
const saveGalleryImage = async (req, res) => {
try {
const { userId, gameName, gameID, screenShot } = req.body;
const { childId, gameName, gameID, screenShot } = req.body;
// Validate base64 format
const isValidBase64 = validateBase64(screenShot);
@@ -46,7 +46,7 @@ const saveGalleryImage = async (req, res) => {
// Create and save gallery image data
const galleryImageData = new GalleryImage({
userId,
childId,
gameName,
gameID,
screenshotUrl,