mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:48:33 +00:00
fix(nocodb): remove unwanted repeated text
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user