mirror of https://github.com/buster-so/buster.git
fix broken linting
This commit is contained in:
parent
64def9918d
commit
5dd7b20f25
|
@ -35,7 +35,7 @@ export const slackAgentTask: ReturnType<
|
|||
> = schemaTask<'slack-agent-task', typeof SlackAgentTaskInputSchema, SlackAgentTaskOutput>({
|
||||
id: 'slack-agent-task',
|
||||
schema: SlackAgentTaskInputSchema,
|
||||
maxDuration: 600, // needs to be the same or longer than the analyst agent task since we wait for it to complete.
|
||||
maxDuration: 600, // needs to be the same or longer than the analyst agent task since we wait for it to complete.
|
||||
run: async (payload: SlackAgentTaskInput): Promise<SlackAgentTaskOutput> => {
|
||||
try {
|
||||
logger.log('Starting Slack agent task', {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { randomUUID } from 'crypto';
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import * as db from '@buster/database';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import {
|
||||
|
@ -297,11 +297,8 @@ describe('user-organizations', () => {
|
|||
limit: vi.fn().mockImplementation(() => {
|
||||
// Check if we're querying users or organizations
|
||||
const lastCall = mockDb.from.mock.lastCall;
|
||||
if (lastCall && lastCall[0] === db.users) {
|
||||
return Promise.resolve([]);
|
||||
} else {
|
||||
return Promise.resolve([mockOrg]);
|
||||
}
|
||||
if (lastCall && lastCall[0] === db.users) return Promise.resolve([]);
|
||||
return Promise.resolve([mockOrg]);
|
||||
}),
|
||||
insert: vi.fn().mockReturnThis(),
|
||||
values: vi.fn().mockReturnThis(),
|
||||
|
@ -352,11 +349,8 @@ describe('user-organizations', () => {
|
|||
limit: vi.fn().mockImplementation(() => {
|
||||
// Check if we're querying users or organizations
|
||||
const lastCall = mockDb.from.mock.lastCall;
|
||||
if (lastCall && lastCall[0] === db.users) {
|
||||
return Promise.resolve([mockExistingUser]);
|
||||
} else {
|
||||
return Promise.resolve([mockOrg]);
|
||||
}
|
||||
if (lastCall && lastCall[0] === db.users) return Promise.resolve([mockExistingUser]);
|
||||
return Promise.resolve([mockOrg]);
|
||||
}),
|
||||
insert: vi.fn().mockReturnThis(),
|
||||
values: vi.fn().mockReturnThis(),
|
||||
|
@ -411,11 +405,8 @@ describe('user-organizations', () => {
|
|||
limit: vi.fn().mockImplementation(() => {
|
||||
// Check if we're querying users or organizations
|
||||
const lastCall = mockDb.from.mock.lastCall;
|
||||
if (lastCall && lastCall[0] === db.users) {
|
||||
return Promise.resolve([]);
|
||||
} else {
|
||||
return Promise.resolve([mockOrg]);
|
||||
}
|
||||
if (lastCall && lastCall[0] === db.users) return Promise.resolve([]);
|
||||
return Promise.resolve([mockOrg]);
|
||||
}),
|
||||
insert: vi.fn().mockReturnThis(),
|
||||
values: vi.fn().mockReturnThis(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { SQL } from 'drizzle-orm';
|
||||
import type { SQL } from 'drizzle-orm';
|
||||
import type { PgColumn, PgSelect } from 'drizzle-orm/pg-core';
|
||||
import type { PaginatedResponse, PaginationMetadata } from './pagination.types';
|
||||
|
||||
|
|
|
@ -3,5 +3,17 @@
|
|||
"extends": ["../../biome.json"],
|
||||
"files": {
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"include": ["**/scripts/**/*", "**/script/**/*"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"suspicious": {
|
||||
"noConsoleLog": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue