@exulu/backend 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1645,7 +1645,7 @@ var updateStatistic = async (statistic) => {
|
|
|
1645
1645
|
const { db: db2 } = await postgresClient();
|
|
1646
1646
|
await db2.from("statistics").update({
|
|
1647
1647
|
total: db2.raw("total + ?", [statistic.count ?? 1]),
|
|
1648
|
-
timeseries: db2.raw("CASE WHEN
|
|
1648
|
+
timeseries: db2.raw("CASE WHEN createdAt = ? THEN array_append(timeseries, ?) ELSE timeseries END", [currentDate, { date: currentDate, count: statistic.count ?? 1 }])
|
|
1649
1649
|
}).where({
|
|
1650
1650
|
name: statistic.name,
|
|
1651
1651
|
label: statistic.label,
|
|
@@ -4048,7 +4048,7 @@ var ExuluChunkers = {
|
|
|
4048
4048
|
chonkie: {
|
|
4049
4049
|
sentence: import_chonkie.SentenceChunker,
|
|
4050
4050
|
recursive: {
|
|
4051
|
-
|
|
4051
|
+
function: import_chonkie.RecursiveChunker,
|
|
4052
4052
|
rules: import_chonkie.RecursiveRules
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1603,7 +1603,7 @@ var updateStatistic = async (statistic) => {
|
|
|
1603
1603
|
const { db: db2 } = await postgresClient();
|
|
1604
1604
|
await db2.from("statistics").update({
|
|
1605
1605
|
total: db2.raw("total + ?", [statistic.count ?? 1]),
|
|
1606
|
-
timeseries: db2.raw("CASE WHEN
|
|
1606
|
+
timeseries: db2.raw("CASE WHEN createdAt = ? THEN array_append(timeseries, ?) ELSE timeseries END", [currentDate, { date: currentDate, count: statistic.count ?? 1 }])
|
|
1607
1607
|
}).where({
|
|
1608
1608
|
name: statistic.name,
|
|
1609
1609
|
label: statistic.label,
|
|
@@ -4006,7 +4006,7 @@ var ExuluChunkers = {
|
|
|
4006
4006
|
chonkie: {
|
|
4007
4007
|
sentence: SentenceChunker,
|
|
4008
4008
|
recursive: {
|
|
4009
|
-
|
|
4009
|
+
function: RecursiveChunker,
|
|
4010
4010
|
rules: RecursiveRules
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|