fix: build errors and merging projects and homepage
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { db } from '$lib/db';
|
||||
import { tasks } from '$lib/db/schema.js';
|
||||
import { desc } from 'drizzle-orm';
|
||||
import { db } from '$lib/server/db';
|
||||
|
||||
export const load = async () => {
|
||||
return {
|
||||
@@ -12,7 +10,9 @@ export const load = async () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
orderBy: [desc(tasks.currentPoints)]
|
||||
orderBy: {
|
||||
currentPoints: 'desc'
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user