version/0.1.4 #9
13
package.json
13
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.3",
|
"version": "0.1.3",
|
||||||
"name": "77th_eventcalendernotification",
|
"name": "77th_eventcalendarnotification",
|
||||||
"module": "./src/app.ts",
|
"module": "./src/app.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
@@ -16,12 +16,13 @@
|
|||||||
"typescript-eslint": "^8.46.2"
|
"typescript-eslint": "^8.46.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun run ./src/app.ts",
|
"start": "NODE_ENV=production bun run ./src/app.ts",
|
||||||
"dev:init": "bun run ./src/app.ts --init",
|
"dev": "NODE_ENV=development bun ./src/app.ts",
|
||||||
"db:init": "bun run ./run/db_init.ts",
|
"db:init": "bun run ./run/db_init.ts",
|
||||||
"db:deleteall": "bun run ./run/db_deleteall.ts",
|
"db:deleteall": "bun run ./run/db_event_deleteall.ts",
|
||||||
"build": "bun build --compile --minify --sourcemap ./src/app.ts --outfile ./build/77th_eventcalendernotification",
|
"db:event:dedup": "bun run ./run/db_event_delete_duplicates.ts",
|
||||||
"build:linux": "bun build --compile --minify --sourcemap --target=bun-linux-arm64 ./src/app.ts --outfile ./build/77th_eventcalendernotification",
|
"build": "bun build --compile --minify --sourcemap ./src/app.ts --outfile ./build/77th_eventcalendarnotification",
|
||||||
|
"build:linux": "bun build --compile --minify --sourcemap --target=bun-linux-arm64 ./src/app.ts --outfile ./build/77th_eventcalendarnotification",
|
||||||
"docker:build": "docker build -t chiko/77th_eventcalendarntfy:0.1.0 ."
|
"docker:build": "docker build -t chiko/77th_eventcalendarntfy:0.1.0 ."
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
10
run/db_event_delete_duplicates.ts
Normal file
10
run/db_event_delete_duplicates.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import * as db from "../src/sql";
|
||||||
|
|
||||||
|
const query = db.db.query(`DELETE FROM events
|
||||||
|
WHERE rowid NOT IN (
|
||||||
|
SELECT MIN(rowid)
|
||||||
|
FROM events
|
||||||
|
GROUP BY uid
|
||||||
|
);`);
|
||||||
|
|
||||||
|
query.run();
|
||||||
Reference in New Issue
Block a user