Skip to content

Commit 7124987

Browse files
author
Shaw
committed
fixes
1 parent b1cd3cd commit 7124987

6 files changed

Lines changed: 182 additions & 156 deletions

File tree

cloud/apps/api/v1/twitter/token/route.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ const app = new Hono<AppEnv>();
3636
app.get("/", async (c) => {
3737
try {
3838
const user = await requireUserOrApiKeyWithOrg(c);
39-
const role =
40-
c.req.query("connectionRole") === "owner" ? "owner" : ("agent" as const);
39+
const role = c.req.query("connectionRole") === "owner" ? "owner" : ("agent" as const);
4140

42-
const creds = await twitterAutomationService.getCredentialsForAgent(
43-
user.organization_id,
44-
role,
45-
);
41+
const creds = await twitterAutomationService.getCredentialsForAgent(user.organization_id, role);
4642

4743
if (!creds) {
4844
return c.json(
@@ -71,9 +67,7 @@ app.get("/", async (c) => {
7167
return c.json({
7268
auth_mode: "oauth2" as const,
7369
access_token: creds.TWITTER_OAUTH_ACCESS_TOKEN,
74-
...(creds.TWITTER_OAUTH_SCOPE
75-
? { scopes: creds.TWITTER_OAUTH_SCOPE }
76-
: {}),
70+
...(creds.TWITTER_OAUTH_SCOPE ? { scopes: creds.TWITTER_OAUTH_SCOPE } : {}),
7771
...(creds.TWITTER_USER_ID ? { user_id: creds.TWITTER_USER_ID } : {}),
7872
});
7973
}

cloud/examples/clone-ur-crush/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export default function HomePage() {
159159
};
160160

161161
// Handle auto-generation flow when user triggers photo generation
162+
// biome-ignore lint/correctness/useExhaustiveDependencies: Multi-step auto-gen; full deps would re-enter while generatingField/generatingPhoto flip.
162163
useEffect(() => {
163164
if (!shouldAutoGeneratePhoto) return;
164165

@@ -216,7 +217,6 @@ export default function HomePage() {
216217
};
217218

218219
autoGenerate();
219-
// eslint-disable-next-line react-hooks/exhaustive-deps
220220
}, [shouldAutoGeneratePhoto, formData.description, generatingField, generatingPhoto]);
221221

222222
const handleGeneratePhotoWithAppearance = async (appearance: string) => {

cloud/packages/lib/cache/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,7 @@ export class CacheClient {
660660
"or set CACHE_DISABLE_REASON to acknowledge the disable.",
661661
);
662662
} else if (disableReason) {
663-
logger.warn(
664-
`[Cache] Caching is disabled (acknowledged): ${disableReason}`,
665-
);
663+
logger.warn(`[Cache] Caching is disabled (acknowledged): ${disableReason}`);
666664
} else {
667665
logger.warn("[Cache] Caching is disabled via CACHE_ENABLED flag");
668666
}

0 commit comments

Comments
 (0)