bump prerelease

This commit is contained in:
undefined committed 2025-03-13 04:29:00 +08:00
1 parent caa4ddc414
commit 8bc5fa1142
15 files changed
+36 -40

No files matched your search

+7
View File
@@ -82,6 +82,13 @@ async function run({ domainId }, report) {
}
export const apply = (ctx: Context) => {
ctx.setting.SystemSetting(Schema.object({
'elastic-search': Schema.object({
url: Schema.string().role('url').default('http://127.0.0.1:9200'),
indexSize: Schema.number().role('indexSize').default(10000).min(0).step(1),
}),
}));
ctx.on('problem/add', async (doc, docId) => {
await client.index({
index: 'problem',
+4 -1
View File
@@ -1,11 +1,14 @@
{
"name": "@hydrooj/elastic-search",
"version": "1.1.8",
"version": "1.2.0-alpha.0",
"main": "index.ts",
"repository": "https://github.com/hydro-dev/Hydro",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@elastic/elasticsearch": "^8.17.1"
},
"engines": {
"hydrooj": ">=5.0.0-alpha.0"
}
}
-4
View File
@@ -1,4 +0,0 @@
url:
value: http://127.0.0.1:9200
indexSize:
value: 10000