Skip to content

Commit

Permalink
fix sync registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Blanc committed Oct 29, 2023
1 parent 43099bf commit bae1f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/routes/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function insertLog(uuid, triggertype, taskType) {
};

let result = await db.insertBulk("jf_logging", log, jf_logging_columns);
// console.log(result);
console.log(result);
} catch (error) {
console.log(error);
return [];
Expand Down
4 changes: 1 addition & 3 deletions backend/routes/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,6 @@ async function fullSync(triggertype) {
let endTime = moment();

let diffInSeconds = endTime.diff(startTime, 'seconds');
await sleep(5000);
await syncPlaybackPluginData();

const log=
{
Expand All @@ -481,7 +479,7 @@ async function fullSync(triggertype) {
"Result":"Success"

};
await insertLog(log);
await insertLog(log, "Automatic", "Jellyfin Sync");
console.log("Finished fullsync");
}

Expand Down

0 comments on commit bae1f83

Please sign in to comment.