Skip to content

Commit

Permalink
profileeditor: add srvModified too on save to simulate API v3
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Jan 20, 2023
1 parent 8b967bf commit 17960f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ npm-debug.log
# directories created by docker-compose.yml
mongo-data/
letsencrypt/

# runtime data
package-lock.json
1 change: 1 addition & 0 deletions lib/profile/profileeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ var init = function init () {
var record = mongorecords[currentrecord];
record.startDate = new Date(client.utils.mergeInputTime(timeInput.val(), dateInput.val())).toISOString( );
record.created_at = new Date().toISOString( );
record.srvModified = new Date().getTime(); // remove when switching to v3 API

var adjustedRecord = _.cloneDeep(record);

Expand Down
21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17960f7

Please sign in to comment.