ToolJet/server
Vijaykant Yadav c27d64a524 Fix: module version leak across branches during git sync push
When exporting referenced modules during push, if a ModuleViewer's pinned
module_reference_id came from a cross-workspace import (and doesn't exist in
the current workspace DB), the pinned lookup failed silently. Because the
branch-local resolution was in an `else if` block, it never ran as a fallback.

This caused export() to execute without a version_id filter, serializing ALL
app_versions for the module (including broken stubs from other branches) into
the git commit — violating the one-version-per-branch contract.

Changed `else if (resolvedId && parentBranchId)` to
`if (!versionDbId && resolvedId && parentBranchId)` so branch-local
resolution always runs as a fallback when the pinned lookup doesn't resolve.
2026-05-22 18:14:14 +05:30
..
data-migrations Merge branch 'main' into release/v3.21.34-beta 2026-05-18 23:01:11 +05:30
ee@4d969baa4d 🚀 chore: update submodules to latest main after auto-merge (#16534) 2026-05-22 10:14:06 +05:30
lib refactor: use setup script in top level context 2025-09-11 00:15:36 +05:30
migrations Merge branch 'main' into release/v3.21.35-beta 2026-05-21 13:19:55 +05:30
scripts Merge branch 'main' into rebase/lts-main-14-mgs 2026-04-09 21:07:43 +05:30
src Fix: module version leak across branches during git sync push 2026-05-22 18:14:14 +05:30
templates Merge pull request #13780 from ToolJet/fix/bugs-11 2025-08-12 22:49:40 +05:30
test Merge branch 'main' into release/v3.21.35-beta 2026-05-21 13:19:55 +05:30
.eslintrc.js
.gitignore Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
.node-version Platform LTS Final fixes (#13221) 2025-07-09 22:36:41 +05:30
.npmrc
.version Merge branch 'main' into release/v3.21.35-beta 2026-05-21 13:19:55 +05:30
data-migration-config.ts Node upgrade 18->22 (#12836) 2025-06-17 13:01:46 +05:30
dev-entrypoint.sh rebase with lts-3.16 2026-01-27 11:58:36 +05:30
eslint.config.js Cloud licensing related changes (#13033) 2025-07-02 10:57:36 +05:30
jest.config.ts Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
nest-cli.json
ormconfig.ts Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
package-lock.json Merge branch 'main' into release/v3.21.35-beta 2026-05-21 13:19:55 +05:30
package.json Fix: [Workflows] Server crashes on build fail when error occurs in package bundling without any update in UI (#16030) 2026-04-22 10:21:17 +05:30
README.md
tsconfig.build.json
tsconfig.json Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.