mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-04 20:01:54 +00:00
[constants] replace magic number 30078 with KIND_APP_DATA in cmd-lock.mjs
Refactored src/cmd-lock.mjs to use KIND_APP_DATA constant instead of hardcoded 30078. Added refactor artifacts. Created task completion log. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
04bafc92bb
commit
703c351ff2
7 files changed
+228
-1
No files matched your search
+2
-1
@@ -6,6 +6,7 @@ import {
|
||||
} from './torch-config.mjs';
|
||||
import {
|
||||
RACE_CHECK_DELAY_MS,
|
||||
KIND_APP_DATA,
|
||||
} from './constants.mjs';
|
||||
import { getRoster } from './roster.mjs';
|
||||
import { queryLocks, publishLock } from './lock-ops.mjs';
|
||||
@@ -55,7 +56,7 @@ export async function cmdLock(agent, cadence, dryRun = false) {
|
||||
console.error('Step 3: Building lock event...');
|
||||
const event = finalizeEvent(
|
||||
{
|
||||
kind: 30078,
|
||||
kind: KIND_APP_DATA,
|
||||
created_at: now,
|
||||
tags: [
|
||||
['d', `${namespace}-lock/${cadence}/${agent}/${dateStr}`],
|
||||
|
||||
Reference in new issue
Block a user