Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
amcclain committed Nov 11, 2024
1 parent 94f5421 commit 563cc64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ package io.xh.hoist.admin
import io.xh.hoist.jsonblob.JsonBlob
import io.xh.hoist.security.Access

import static java.lang.System.currentTimeMillis

@Access(['HOIST_ADMIN_READER'])
class JsonBlobAdminController extends AdminRestController {
static restTarget = JsonBlob
Expand All @@ -26,7 +28,7 @@ class JsonBlobAdminController extends AdminRestController {
protected void preprocessSubmit(Map submit) {
// Note explicit true/false check to distinguish from undefined
if (submit.archived == true) {
submit.archivedDate = new Date().getTime()
submit.archivedDate = currentTimeMillis()
} else if (submit.archived == false) {
submit.archivedDate = 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class JsonBlobService extends BaseService implements DataBinder {
JsonBlob archive(String token, String username = username) {
def blob = get(token, username)
blob.archivedDate = currentTimeMillis()

blob.lastUpdatedBy = authUsername
blob.save()
}
Expand Down

0 comments on commit 563cc64

Please sign in to comment.