mirror of https://github.com/buster-so/buster.git
lint fixes 👀
This commit is contained in:
parent
139a0f52c9
commit
5448af614a
|
@ -1,9 +1,9 @@
|
|||
import {
|
||||
CancelChatParamsSchema,
|
||||
ChatCreateRequestSchema,
|
||||
ChatError,
|
||||
type ChatWithMessages,
|
||||
ChatWithMessagesSchema,
|
||||
CancelChatParamsSchema,
|
||||
} from '@buster/server-shared/chats';
|
||||
import { zValidator } from '@hono/zod-validator';
|
||||
import { Hono } from 'hono';
|
||||
|
@ -11,8 +11,8 @@ import { requireAuth } from '../../../middleware/auth';
|
|||
import '../../../types/hono.types'; //I added this to fix intermitent type errors. Could probably be removed.
|
||||
import { HTTPException } from 'hono/http-exception';
|
||||
import { z } from 'zod';
|
||||
import { createChatHandler } from './handler';
|
||||
import { cancelChatHandler } from './cancel-chat';
|
||||
import { createChatHandler } from './handler';
|
||||
|
||||
const app = new Hono()
|
||||
// Apply authentication middleware
|
||||
|
|
|
@ -171,7 +171,6 @@ function createDataMetadata(results: Record<string, unknown>[]): DataMetadata {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ensures timeFrame values are properly quoted in YAML content
|
||||
* Finds timeFrame: value and wraps the value in quotes if not already quoted
|
||||
|
|
|
@ -162,7 +162,6 @@ function createDataMetadata(results: Record<string, unknown>[]): DataMetadata {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ensures timeFrame values are properly quoted in YAML content
|
||||
* Finds timeFrame: value and wraps the value in quotes if not already quoted
|
||||
|
|
|
@ -120,9 +120,7 @@ describe('Snowflake Memory Protection Tests', () => {
|
|||
await adapter.initialize(credentials);
|
||||
|
||||
// Query a small table without maxRows
|
||||
const result = await adapter.query(
|
||||
'SELECT * FROM SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.REGION'
|
||||
);
|
||||
const result = await adapter.query('SELECT * FROM SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.REGION');
|
||||
|
||||
// REGION table has exactly 5 rows
|
||||
expect(result.rows.length).toBe(5);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { z } from "zod";
|
||||
import { OrganizationSchema } from "../organization/organization.types";
|
||||
import { OrganizationRoleSchema } from "../organization/roles.types";
|
||||
import { TeamSchema } from "../teams/teams.types";
|
||||
import { UserFavoriteSchema } from "./favorites.types";
|
||||
import { UserSchema } from "./users.types";
|
||||
import { z } from 'zod';
|
||||
import { OrganizationSchema } from '../organization/organization.types';
|
||||
import { OrganizationRoleSchema } from '../organization/roles.types';
|
||||
import { TeamSchema } from '../teams/teams.types';
|
||||
import { UserFavoriteSchema } from './favorites.types';
|
||||
import { UserSchema } from './users.types';
|
||||
|
||||
const OrganizationUserSchema = OrganizationSchema.extend({
|
||||
role: OrganizationRoleSchema,
|
||||
|
|
Loading…
Reference in New Issue