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