Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Apr 3, 2024
1 parent 1e57d1a commit 742a5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/lib/workspace_usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function checkWorkspaceActivity(workspace: Workspace) {
const sevenDaysAgo = new Date();
sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);

const hasConnectedDataSource = await DataSource.findOne({
const hasDataSource = await DataSource.findOne({
where: { workspaceId: workspace.id },
});

Expand All @@ -120,5 +120,5 @@ export async function checkWorkspaceActivity(workspace: Workspace) {
where: { workspaceId: workspace.id, updatedAt: { [Op.gte]: sevenDaysAgo } },
});

return hasConnectedDataSource || hasCreatedAssistant || hasRecentConversation;
return hasDataSource || hasCreatedAssistant || hasRecentConversation;
}

0 comments on commit 742a5f5

Please sign in to comment.