move sort plugin to data plugins

This commit is contained in:
dswbx
2025-11-26 10:26:58 +01:00
parent 407d103a5f
commit 5c3d3d763e
3 changed files with 2 additions and 3 deletions
@@ -731,7 +731,7 @@ describe("sort plugin", () => {
.execute();
// create normal task
const { data: task2 } = await mutator.insertOne({ title: "Task 2" });
await mutator.insertOne({ title: "Task 2" });
// update the null task to have a position
const nullTask = await app.connection.kysely
@@ -791,7 +791,6 @@ describe("sort plugin", () => {
const { data: tasks } = await app.em.repo("tasks").findMany({
sort: { by: "position", dir: "asc" },
});
console.dir(tasks, { depth: null });
expect(tasks.length).toBe(2);
expect(tasks[0].id).toBe(task2.id);
+1 -1
View File
@@ -9,4 +9,4 @@ export { syncTypes, type SyncTypesOptions } from "./dev/sync-types.plugin";
export { syncSecrets, type SyncSecretsOptions } from "./dev/sync-secrets.plugin";
export { timestamps, type TimestampsPluginOptions } from "./data/timestamps.plugin";
export { emailOTP, type EmailOTPPluginOptions } from "./auth/email-otp.plugin";
export { sort, type SortPluginOptions } from "./sort.plugin";
export { sort, type SortPluginOptions } from "./data/sort.plugin";