diff --git a/.github/workflows/sync-to-develop.yml b/.github/workflows/sync-to-develop.yml index 17571b175c..e3c327f3ae 100644 --- a/.github/workflows/sync-to-develop.yml +++ b/.github/workflows/sync-to-develop.yml @@ -9,6 +9,11 @@ jobs: sync-to-develop: runs-on: ubuntu-latest steps: + # See https://github.com/actions/checkout/issues/766 + - name: Workaround for unsafe repository issue + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Checkout uses: actions/checkout@v1 diff --git a/README.md b/README.md index 2757641f23..fd4af9aa40 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ npm start ```bash # for SQLite docker run -d --name nocodb \ --v "$(pwd)"/nocodb:/usr/app/data/ \ +-v "$(pwd)"/nocodb:/usr/app/data/ \ -p 8080:8080 \ nocodb/nocodb:latest diff --git a/packages/noco-docs/content/en/developer-resources/rest-apis.md b/packages/noco-docs/content/en/developer-resources/rest-apis.md index cb4b517364..7998fd33ae 100644 --- a/packages/noco-docs/content/en/developer-resources/rest-apis.md +++ b/packages/noco-docs/content/en/developer-resources/rest-apis.md @@ -50,7 +50,7 @@ Here's the overview of all APIs. For the details, please check out m.id == audit.model_id) - )?.id; + // extract model by using model_id property from audit + ctx.objModelRef?.[audit.project_id]?.[ + ctx.metas?.find(m => m.id == audit.model_id)?.title + ] || + ctx.objModelAliasRef?.[audit.project_id]?.[ + ctx.metas?.find(m => m.id == audit.model_id)?.alias + ]; + + // if model is not found skip audit insertion + if (!model) continue; + + insertObj.fk_model_id = model.id; } await Audit.insert(insertObj, ncMeta);