Skip to content

Commit 8882f1f

Browse files
committed
add remoteConfig trigger
1 parent 2ad9e32 commit 8882f1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

functions/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ exports.indexTimelineToElastic = functions.firestore
3434

3535
});
3636

37+
exports.updateElastic = functions.remoteConfig.onUpdate(versionMetadata => {
38+
const currentVersion = versionMetadata.versionNumber;
39+
console.log(`updateElastic: ${currentVersion}`);
40+
});
41+
3742
const app = express();
3843
app.use(cors({ origin: true }));
3944
app.post('/timeline/_search', (req, res) => {

0 commit comments

Comments
 (0)