Skip to content

Commit 01304eb

Browse files
committed
Setup Iconset Import
1 parent 697f83e commit 01304eb

File tree

13 files changed

+1415
-1326
lines changed

13 files changed

+1415
-1326
lines changed

api/migrations/0122_tiny_silvermane.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ ALTER TABLE "imports" RENAME COLUMN "mode" TO "source";--> statement-breakpoint
22
ALTER TABLE "imports" RENAME COLUMN "mode_id" TO "source_id";--> statement-breakpoint
33
ALTER TABLE "imports" DROP COLUMN "batch";
44

5-
UPDATE "imports" SET source = "Upload" WHERE source = "Unknown";
5+
UPDATE "imports" SET source = 'Upload' WHERE source = 'Unknown';

api/routes/profile-asset.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ export default async function router(schema: Schema, config: Config) {
116116
}), {
117117
default: []
118118
})
119-
})
119+
}),
120+
res: ProfileFileResponse
120121
}, async (req, res) => {
121122
try {
122123
const user = await Auth.as_user(config, req, { token: true });
@@ -159,7 +160,8 @@ export default async function router(schema: Schema, config: Config) {
159160
artifacts: Type.Array(Type.Object({
160161
ext: Type.String()
161162
}))
162-
})
163+
}),
164+
res: ProfileFileResponse
163165
}, async (req, res) => {
164166
try {
165167
const user = await Auth.as_user(config, req, { token: true });

tasks/events/package-lock.json

Lines changed: 29 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/events/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"glob": "^11.0.1",
2727
"jsonwebtoken": "^9.0.2",
2828
"node-stream-zip": "^1.15.0",
29+
"rimraf": "^6.0.1",
2930
"sharp": "^0.34.1",
3031
"spritesmith": "^3.5.1",
3132
"tiny-async-pool": "^2.1.0",
@@ -38,6 +39,8 @@
3839
"@types/jsonwebtoken": "^9.0.5",
3940
"@types/node": "^24.0.0",
4041
"@types/sinon": "^17.0.4",
42+
"@types/spritesmith": "^3.4.5",
43+
"@types/vinyl": "^2.0.12",
4144
"eslint": "^9.0.0",
4245
"globals": "^16.0.0",
4346
"openapi-typescript": "^7.9.1",

tasks/events/src/api.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

tasks/events/src/comms.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,30 @@ import { parentPort } from 'worker_threads';
99
import type { Message } from './types.ts';
1010
import Worker from './worker.ts';
1111

12+
if (!parentPort) {
13+
throw new Error('This file can only be run as a worker thread');
14+
}
15+
1216
parentPort.on('message', async (message) => {
1317
const msg: Message = message;
1418

1519
const worker = new Worker(msg);
1620

1721
worker.on('success', () => {
22+
if (!parentPort) {
23+
throw new Error('This file can only be run as a worker thread');
24+
}
25+
1826
parentPort.postMessage({
1927
type: 'success'
2028
});
2129
});
2230

2331
worker.on('error', (err) => {
32+
if (!parentPort) {
33+
throw new Error('This file can only be run as a worker thread');
34+
}
35+
2436
parentPort.postMessage({
2537
type: 'success',
2638
error: err

0 commit comments

Comments
 (0)