Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 0051ca6

Browse files
authored
Merge pull request #7 from aibtcdev/feat/database
Few small fixes
2 parents b1a8c2d + e05827c commit 0051ca6

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/database/aibtcdev.sql

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ CREATE TABLE user_crew_execution_steps (
301301

302302
-- Define indexes for execution steps
303303
CREATE INDEX idx_execution_steps_created_at ON user_crew_execution_steps(created_at);
304-
CREATE INDEX idx_execution_steps_profile_id ON user_crew_execution_steps(profile_id)
304+
CREATE INDEX idx_execution_steps_profile_id ON user_crew_execution_steps(profile_id);
305305
CREATE INDEX idx_execution_steps_crew_id ON user_crew_execution_steps(crew_id);
306306
CREATE INDEX idx_execution_steps_execution_id ON user_crew_execution_steps(execution_id);
307307
CREATE INDEX idx_execution_steps_type ON user_crew_execution_steps(step_type);
@@ -383,8 +383,3 @@ BEGIN
383383
updated_at = CURRENT_TIMESTAMP
384384
WHERE id = OLD.crew_id;
385385
END;
386-
387-
-- Ask Aider how to link user_crews or user_crew_executions to user_crons,
388-
-- then use a trigger to update last run when a valid cron is triggered.
389-
-- Leaning toward a boolean on user_crews that references the value in
390-
-- user_crons for cron_enabled on the same id.

src/durable-objects/database-do.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class DatabaseDO extends DurableObject<Env> {
2323
private readonly BASE_PATH = '/database';
2424
private readonly KEY_PREFIX = 'db';
2525
private readonly SUPPORTED_ENDPOINTS: string[] = [
26-
'/hello',
2726
'/conversations',
2827
'/conversations/latest',
2928
'/conversations/history',
@@ -112,12 +111,6 @@ export class DatabaseDO extends DurableObject<Env> {
112111
});
113112
}
114113

115-
if (endpoint === '/hello') {
116-
return createJsonResponse({
117-
message: 'hello from database!',
118-
});
119-
}
120-
121114
// all methods from this point forward require a shared key
122115
// frontend and backend each have their own stored in KV
123116
const authResult = await this.validateAuth(request);

0 commit comments

Comments
 (0)