diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index 6365cd54..cd406ff2 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -214,7 +214,7 @@ export { dbInsertOrUpdateVariable as variable, dbJobAnvilSyncShared, dbQuery, - dbSubRefreshTimestamp, + dbSubRefreshTimestamp as timestamp, dbWrite, getAnvilData, getLocalHostName, diff --git a/striker-ui-api/src/routes/file.ts b/striker-ui-api/src/routes/file.ts index 1d5e1440..bfcb63ff 100644 --- a/striker-ui-api/src/routes/file.ts +++ b/striker-ui-api/src/routes/file.ts @@ -3,7 +3,7 @@ import express from 'express'; import { dbJobAnvilSyncShared, dbQuery, - dbSubRefreshTimestamp, + timestamp, dbWrite, } from '../lib/accessModule'; import getFile from '../lib/request_handlers/file/getFile'; @@ -26,7 +26,7 @@ router `UPDATE files SET file_type = '${FILE_TYPE_DELETED}', - modified_date = '${dbSubRefreshTimestamp()}' + modified_date = '${timestamp()}' WHERE file_uuid = '${fileUUID}';`, ).stdout; @@ -77,7 +77,7 @@ router UPDATE files SET file_name = '${fileName}', - modified_date = '${dbSubRefreshTimestamp()}' + modified_date = '${timestamp()}' WHERE file_uuid = '${fileUUID}';`; anvilSyncSharedFunctions.push(() => @@ -97,7 +97,7 @@ router UPDATE files SET file_type = '${fileType}', - modified_date = '${dbSubRefreshTimestamp()}' + modified_date = '${timestamp()}' WHERE file_uuid = '${fileUUID}';`; anvilSyncSharedFunctions.push(() => @@ -136,7 +136,7 @@ router UPDATE file_locations SET file_location_active = '${fileLocationActive}', - modified_date = '${dbSubRefreshTimestamp()}' + modified_date = '${timestamp()}' WHERE file_location_uuid = '${fileLocationUUID}';`; const targetHosts = dbQuery(