7:21:55 AM [express] Server started successfully
7:22:06 AM [express] GET /api/user 304 in 56ms :: {"id":7,"username":"admin","password":"6f60604b9d2…
7:22:07 AM [express] GET /api/agenda 200 in 60ms
7:22:07 AM [express] GET /api/questions 304 in 84ms :: [{"id":1,"userId":7,"sessionId":2,"question":…
7:22:12 AM [express] GET /api/events 304 in 76ms :: [{"id":1,"eventName":"National Development Summi…
7:22:12 AM [express] GET /api/polls 304 in 81ms :: [{"id":1,"title":"Feedback on Opening Ceremony","…
7:22:14 AM [express] GET /api/sessions 304 in 181ms :: [{"id":1,"eventId":1,"sessionTitle":"Urban De…
Poll data to insert: {
  title: 'asdfasd',
  titleAr: 'asdfas',
  description: 'asdfasd',
  descriptionAr: 'asdfsad',
  eventId: 1,
  sessionId: 1,
  creatorId: 7,
  startDate: 2025-02-26T00:00:00.000Z,
  endDate: 2025-02-26T00:00:00.000Z,
  isActive: true,
  resultsPublished: false
}
Error creating poll: FirebaseAppError: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "invalid_grant: Invalid grant: account not found". There are two likely causes: (1) your server time is not properly synced or (2) your certificate key file has been revoked. To solve (1), re-sync the time on your server. To solve (2), make sure the key ID for your key file is still present at https://console.firebase.google.com/iam-admin/serviceaccounts/project. If not, generate a new key file at https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk.
    at /home/runner/workspace/node_modules/firebase-admin/lib/app/firebase-app.js:87:19
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async <anonymous> (/home/runner/workspace/server/routes.ts:640:11) {
  errorInfo: {
    code: 'app/invalid-credential',
    message: 'Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "invalid_grant: Invalid grant: account not found". There are two likely causes: (1) your server time is not properly synced or (2) your certificate key file has been revoked. To solve (1), re-sync the time on your server. To solve (2), make sure the key ID for your key file is still present at https://console.firebase.google.com/iam-admin/serviceaccounts/project. If not, generate a new key file at https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk.'
  },
  codePrefix: 'app'
}
7:22:22 AM [express] POST /api/polls 500 in 165ms :: {"error":"Failed to create poll"}