fix(nocodb): remove unwanted repeated text

This commit is contained in:
Ramesh Mane
2026-01-22 10:31:55 +00:00
parent 4872fdfd34
commit c5415def4d
14 changed files with 23 additions and 67 deletions

View File

@@ -45,9 +45,7 @@ export class CalendarsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId, ncMeta);

View File

@@ -450,9 +450,7 @@ export class ColumnsService implements IColumnsService {
const isSyncedColumn = table.synced && column.readonly;
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const source = await reuseOrSave('source', reuse, async () =>
@@ -2475,9 +2473,7 @@ export class ColumnsService implements IColumnsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const source = await reuseOrSave('source', reuse, async () =>
@@ -3369,9 +3365,7 @@ export class ColumnsService implements IColumnsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
// check if source is readonly and column type is not allowed

View File

@@ -60,9 +60,7 @@ export class FiltersService {
ncMeta?: MetaService,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const filter = await Filter.get(context, param.filterId);

View File

@@ -28,9 +28,7 @@ export class FormColumnsService {
ncMeta?: MetaService,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
validatePayload(

View File

@@ -45,9 +45,7 @@ export class FormsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId, ncMeta);

View File

@@ -45,9 +45,7 @@ export class GalleriesService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId, ncMeta);

View File

@@ -36,9 +36,7 @@ export class GridsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId, ncMeta);

View File

@@ -69,9 +69,7 @@ export class HooksService {
},
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
// if isTableDuplicate, we let v2 to be created
@@ -121,9 +119,7 @@ export class HooksService {
param: { hookId: string; req: NcRequest },
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const hook = await Hook.get(context, param.hookId);

View File

@@ -56,9 +56,7 @@ export class KanbansService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId, ncMeta);

View File

@@ -32,9 +32,7 @@ export class MapsService {
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId);

View File

@@ -32,9 +32,7 @@ export class SortsService {
ncMeta = Noco.ncMeta,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const sort = await Sort.get(context, param.sortId, ncMeta);
@@ -101,9 +99,7 @@ export class SortsService {
ncMeta = Noco.ncMeta,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
validatePayload('swagger.json#/components/schemas/SortReq', param.sort);
@@ -178,9 +174,7 @@ export class SortsService {
ncMeta?: MetaService,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
validatePayload('swagger.json#/components/schemas/SortReq', param.sort);

View File

@@ -72,9 +72,7 @@ export class TablesService {
},
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const model = await Model.get(context, param.tableId);
@@ -306,9 +304,7 @@ export class TablesService {
},
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const table = await Model.getByIdOrName(context, { id: param.tableId });
@@ -717,9 +713,7 @@ export class TablesService {
};
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const base = await Base.getWithInfo(context, param.baseId);

View File

@@ -99,7 +99,7 @@ export class ViewColumnsService {
}
async columnUpdate(
context: NcContext,
context: NcContext,
param: {
viewId: string;
columnId: string;
@@ -111,9 +111,7 @@ export class ViewColumnsService {
ncMeta?: MetaService,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
validatePayload(

View File

@@ -170,9 +170,7 @@ export class ViewsService {
param.view,
);
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const oldView = await View.get(context, param.viewId, ncMeta);
@@ -351,9 +349,7 @@ export class ViewsService {
ncMeta = Noco.ncMeta,
) {
if (context.schema_locked) {
NcError.get(context).schemaLocked(
'Schema modifications are not allowed on installed sandbox bases',
);
NcError.get(context).schemaLocked();
}
const view = await View.get(context, param.viewId, ncMeta);