I have separate databases and I want them to all do the same command where they delete some data after an hour. I can't figure out how to use the onCreate command for the databases that are not the default database.
This is what I used for the default database onCreate call, and it was called.
export const onMessageCreate = functions.database.ref('/{postID}').onCreate(async (snapshot, context) => {
console.log(`HELLO`);
});
I tried using this below, but as a replacement for above, but I got no print out.
functions.database.instance('otherDatabaseID').ref('/{coordinates}')
Anyone know how to trigger onCreate with a database ID?