Leon4gr45 commited on
Commit
691c1fe
·
verified ·
1 Parent(s): eb97644

Force add database in GitHub sync

Browse files
server/src/services/githubSyncService.ts CHANGED
@@ -56,7 +56,7 @@ export async function runGithubSync(): Promise<void> {
56
  }
57
 
58
  logInfo('GitHub Sync: Committing and pushing changes');
59
- execSync(`git -C ${syncDir} add travel.db`, { stdio: 'ignore' });
60
  execSync(`git -C ${syncDir} -c user.name="TREK Sync" -c user.email="sync@trek.local" commit -m "Update database: ${new Date().toISOString()}"`, { stdio: 'ignore' });
61
  execSync(`git -C ${syncDir} push origin ${BRANCH}`, { stdio: 'ignore' });
62
  logInfo('GitHub Sync: Success');
 
56
  }
57
 
58
  logInfo('GitHub Sync: Committing and pushing changes');
59
+ execSync(`git -C ${syncDir} add -f travel.db`, { stdio: 'ignore' });
60
  execSync(`git -C ${syncDir} -c user.name="TREK Sync" -c user.email="sync@trek.local" commit -m "Update database: ${new Date().toISOString()}"`, { stdio: 'ignore' });
61
  execSync(`git -C ${syncDir} push origin ${BRANCH}`, { stdio: 'ignore' });
62
  logInfo('GitHub Sync: Success');