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