mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-27 14:55:20 +03:00
Make waspc/todoApp return tasks in consistent order (#632)
(cherry picked from commit 57606c74e4
)
This commit is contained in:
parent
f83b9cd152
commit
5e5b264448
@ -9,7 +9,10 @@ export const getTasks = async (args, context) => {
|
||||
|
||||
const Task = context.entities.Task
|
||||
const tasks = await Task.findMany(
|
||||
{ where: { user: { id: context.user.id } } }
|
||||
{
|
||||
where: { user: { id: context.user.id } },
|
||||
orderBy: { id: 'asc' },
|
||||
}
|
||||
)
|
||||
return tasks
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user