1

I've a path in database /business/{businessId}/images/{imageId}/imageUrl It listens for business when a business in created, but later I'm pushing images in images, but it doesn't listen for businessImages. I used below listeners.

exports.business = functions.database.ref('/business/{businessId}').onWrite(event => {
    console.log('lorem epsum****', event);
    return true;
});

exports.businessImages = functions.database.ref('/business/{businessId}/images/{imageId}/imageUrl').onWrite(event => {
    console.log('lorem epsum****', event);
    return true;
});

What could be the issue?

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56

1 Answers1

0

Thank you every one for the answers, but the main issue was, i was inserting the whole base 64 images in the imageUrl, resulting in slowest performance for listening or getting data for imageUrl. When i removed all the images, it worked great.

P.S. I know we should put URLs instead of base 64 images.