Skip to content

Commit 069dd34

Browse files
committed
1 parent 38ab24e commit 069dd34

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

standalone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cap-standalone",
3-
"version": "2.0.15",
3+
"version": "2.0.16",
44
"scripts": {
55
"test": "echo \"Error: no test specified\" && exit 1",
66
"dev": "bun run --watch src/index.js",

standalone/src/db.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ async function initDb() {
2222
throw new Error(`Unsupported DB connector "${connector}"`);
2323
}
2424

25-
db.exec(
25+
await db.exec(
2626
`create table if not exists sessions (
2727
token text primary key not null,
2828
expires integer not null,
2929
created integer not null
3030
)`
3131
);
3232

33-
db.exec(
33+
await db.exec(
3434
`create table if not exists keys (
3535
siteKey text primary key not null,
3636
name text not null,
@@ -40,7 +40,7 @@ async function initDb() {
4040
)`
4141
);
4242

43-
db.exec(
43+
await db.exec(
4444
`create table if not exists solutions (
4545
siteKey text not null,
4646
bucket integer not null,
@@ -49,7 +49,7 @@ async function initDb() {
4949
)`
5050
);
5151

52-
db.exec(
52+
await db.exec(
5353
`create table if not exists challenges (
5454
siteKey text not null,
5555
token text not null,
@@ -59,7 +59,7 @@ async function initDb() {
5959
)`
6060
);
6161

62-
db.exec(
62+
await db.exec(
6363
`create table if not exists tokens (
6464
siteKey text not null,
6565
token text not null,
@@ -68,7 +68,7 @@ async function initDb() {
6868
)`
6969
);
7070

71-
db.exec(
71+
await db.exec(
7272
`create table if not exists api_keys (
7373
id text not null,
7474
name text not null,

0 commit comments

Comments
 (0)