Merge branch 'develop' of https://github.com/rowyio/rowy into develop

This commit is contained in:
Sidney Alcantara
2022-10-05 11:50:17 +11:00
2 changed files with 8 additions and 2 deletions

View File

@@ -117,8 +117,13 @@ export const rowyRunAtom = atom((get) => {
/** Store deployed Rowy Run version */
export const rowyRunVersionAtom = atom(async (get) => {
const rowyRun = get(rowyRunAtom);
const response = await rowyRun({ route: runRoutes.version });
return response.version as string | false;
try {
const response = await rowyRun({ route: runRoutes.version });
return response.version as string | false;
} catch (e) {
console.log(e);
return false;
}
});
/**

View File

@@ -95,6 +95,7 @@ const extensionBodyTemplate = {
return ({
trackedFields: [], // a list of string of column names
collectionId: "historySnapshots", // optionally change the sub-collection id of where the history snapshots are stored
})
}`,
algoliaIndex: `const extensionBody: AlgoliaIndexBody = async({row, db, change, ref}) => {