1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix lint issues

This commit is contained in:
Adria Navarro 2023-11-17 14:42:37 +01:00
parent e8abb5cb46
commit d0e40afbcb
4 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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}`)
}

View file

@ -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`)
}