Fix lint issues
This commit is contained in:
parent
e8abb5cb46
commit
d0e40afbcb
|
@ -2,7 +2,7 @@
|
|||
import Field from "./Field.svelte"
|
||||
import { CoreDropzone, ProgressCircle } from "@budibase/bbui"
|
||||
import { getContext, onMount, onDestroy } from "svelte"
|
||||
import { cloneDeep } from "../../../../../bbui/src/helpers"
|
||||
import { cloneDeep } from "@budibase/bbui/src/helpers"
|
||||
|
||||
export let datasourceId
|
||||
export let bucket
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e202f415d9fa540d08cc2ba6e27394fbc22f357b
|
||||
Subproject commit d017f81efdfc5fef3ec6c185cbccba54213be0b1
|
|
@ -1,5 +1,5 @@
|
|||
import { context } from "@budibase/backend-core"
|
||||
import { isTableId } from "@budibase/backend-core/src/docIds"
|
||||
import { context, docIds } from "@budibase/backend-core"
|
||||
|
||||
import {
|
||||
DatabaseQueryOpts,
|
||||
LinkDocument,
|
||||
|
@ -8,7 +8,7 @@ import {
|
|||
import { ViewName, getQueryIndex } from "../../../../src/db/utils"
|
||||
|
||||
export async function fetch(tableId: string): Promise<LinkDocumentValue[]> {
|
||||
if (!isTableId(tableId)) {
|
||||
if (!docIds.isTableId(tableId)) {
|
||||
throw new Error(`Invalid tableId: ${tableId}`)
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ export async function fetch(tableId: string): Promise<LinkDocumentValue[]> {
|
|||
export async function fetchWithDocument(
|
||||
tableId: string
|
||||
): Promise<LinkDocument[]> {
|
||||
if (!isTableId(tableId)) {
|
||||
if (!docIds.isTableId(tableId)) {
|
||||
throw new Error(`Invalid tableId: ${tableId}`)
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ import sdk from "../../../sdk"
|
|||
import { isExternalTableID } from "../../../integrations/utils"
|
||||
import { EventType, updateLinks } from "../../../db/linkedRows"
|
||||
import { cloneDeep } from "lodash"
|
||||
import { isInternalColumnName } from "@budibase/backend-core/src/db"
|
||||
|
||||
export interface MigrationResult {
|
||||
tablesUpdated: Table[]
|
||||
|
@ -36,7 +35,7 @@ export async function migrate(
|
|||
throw new BadRequestError(`Column name cannot be empty`)
|
||||
}
|
||||
|
||||
if (isInternalColumnName(newColumn.name)) {
|
||||
if (dbCore.isInternalColumnName(newColumn.name)) {
|
||||
throw new BadRequestError(`Column name cannot be a reserved column name`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue