Skip to content

Commit

Permalink
[#958] Add new column: user to store activeUser in jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jan 23, 2024
1 parent 5e04f4c commit fe2fc10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/database/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const tables = [
fields: {
id: 'INTEGER PRIMARY KEY NOT NULL',
uuid: 'TEXT type UNIQUE',
user: 'INTEGER NOT NULL',
type: 'VARCHAR(191)',
status: 'INTEGER NOT NULL',
attempt: 'INTEGER DEFAULT "0" NOT NULL',
Expand Down
1 change: 1 addition & 0 deletions app/src/pages/FormPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const FormPage = ({ navigation, route }) => {
* Create a new job for syncing form submissions.
*/
await crudJobs.addJob({
user: userId,
type: SYNC_FORM_SUBMISSION_TASK_NAME,
active: 1,
status: jobStatus.PENDING,
Expand Down

0 comments on commit fe2fc10

Please sign in to comment.