We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f497c36 commit 9ae4bb7Copy full SHA for 9ae4bb7
ad-server-cache-bun/src/index.ts
@@ -17,8 +17,7 @@ const app = new Elysia()
17
.post(
18
"/ads",
19
async (context) => {
20
- const metadata: AdMetadata = context.body;
21
- await context.adMetadataCache.createAdMetadata(metadata);
+ await context.adMetadataCache.createAdMetadata(context.body);
22
context.set.status = 201;
23
return;
24
},
@@ -27,8 +26,7 @@ const app = new Elysia()
27
26
28
"/ads/preferences",
29
30
- const userAdPreferences: UserAdPreferences = context.body;
31
- await context.adMetadataCache.createUserPreference(userAdPreferences);
+ await context.adMetadataCache.createUserPreference(context.body);
32
33
34
0 commit comments