minor backend changes
This commit is contained in:
1 parent
1bda64003c
commit
69afaecaa4
4 files changed
+13
-7
No files matched your search
@@ -40,7 +40,6 @@ UserCollectionEntry.afterCreate(async (instance, options) => {
|
||||
|
||||
// * entry update (order)
|
||||
UserCollectionEntry.afterUpdate(async (instance, options) => {
|
||||
console.log("we're in after update!!!!!")
|
||||
try {
|
||||
// ? mimicking a change in UserCollection to trigger updatedAt property update for the UserCollection
|
||||
const userCollections = await UserCollection.findByPk(instance.user_collection_id);
|
||||
@@ -129,7 +128,7 @@ EntrySeen.afterCreate(async (instance, options) => {
|
||||
|
||||
// this will ensure that the entry is updated anyways to trigger the updatedAt property
|
||||
let update = {
|
||||
title: sequelize.literal('title')
|
||||
watchlist: false
|
||||
};
|
||||
|
||||
// ? comparing the instance.date_seen with the entry date_first_seen &
|
||||
|
||||
Reference in new issue
Block a user