@gzl10/nexus-backend 0.16.5 → 0.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -963,7 +963,7 @@ function prefixPluginTables(code, modules) {
963
963
  const fields = def.fields;
964
964
  if (!fields) continue;
965
965
  for (const field of Object.values(fields)) {
966
- const relation = field?.db?.relation;
966
+ const relation = field?.relation;
967
967
  if (!relation?.table) continue;
968
968
  if (pluginTables.has(relation.table)) {
969
969
  relation.table = `${prefix}${relation.table}`;