mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-11 15:26:19 +03:00
Make waspc/todoApp return tasks in consistent order
This commit is contained in:
parent
b64890b493
commit
57606c74e4
@ -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