fix: update updated_at when updating progress
This commit is contained in:
@@ -83,7 +83,8 @@ export const actions = {
|
|||||||
.update(tasks)
|
.update(tasks)
|
||||||
.set({
|
.set({
|
||||||
currentPoints: Number(data.get('currentPoints')),
|
currentPoints: Number(data.get('currentPoints')),
|
||||||
totalPoints: Number(data.get('totalPoints'))
|
totalPoints: Number(data.get('totalPoints')),
|
||||||
|
updatedAt: new Date()
|
||||||
})
|
})
|
||||||
.where(eq(tasks.id, Number(params.id)));
|
.where(eq(tasks.id, Number(params.id)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user