Skip to content

Commit 59dacc5

Browse files
feat(web): 🏗️ Calculate extraid in sveltekit backend
1 parent 780889a commit 59dacc5

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web",
3-
"version": "4.6.1",
3+
"version": "4.7.0",
44
"private": true,
55
"scripts": {
66
"dev": "concurrently pnpm:dev:*",

apps/web/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
logs = [];
1919
const bot = new KideAppBot({
2020
token: $normalizedToken,
21-
extraIdApiUrl: `${PUBLIC_API_URL_HTTP}/extraid`
21+
extraIdApiUrl: `/api/extraid`
2222
});
2323
bot.setOnIsActiveChanged(isActive => (isRunning = isActive));
2424
bot.setOnLog(log => (logs = [...logs, log]));
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { getLatestExtraID } from 'kideappbot';
2+
import type { RequestHandler } from '../$types';
3+
4+
export const GET: RequestHandler = async () => {
5+
const id = await getLatestExtraID();
6+
return new Response(String(id));
7+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/aleksivirkkala/kideappbot.git"
99
},
10-
"version": "4.6.1",
10+
"version": "4.7.0",
1111
"scripts": {
1212
"build": "turbo run build",
1313
"dev": "dotenv -- turbo run dev --concurrency 16",

0 commit comments

Comments
 (0)