Fixed profile updated_at timestamp not updating.
This commit is contained in:
@@ -351,6 +351,7 @@ function curateProfileEntry(profile) {
|
|||||||
tattoos: profile.tattoos,
|
tattoos: profile.tattoos,
|
||||||
blood_type: profile.bloodType,
|
blood_type: profile.bloodType,
|
||||||
avatar_media_id: profile.avatarMediaId || null,
|
avatar_media_id: profile.avatarMediaId || null,
|
||||||
|
updated_at: knex.raw('DEFAULT'), // default should be NOW(), this will update the column
|
||||||
};
|
};
|
||||||
|
|
||||||
return curatedProfileEntry;
|
return curatedProfileEntry;
|
||||||
|
|||||||
Reference in New Issue
Block a user