Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
H
haiyen-payment
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Giang Tran
  • haiyen-payment
  • Repository

Switch branch/tag
  • haiyen-payment
  • server.js
Find file
BlameHistoryPermalink
  • tdgiang's avatar
    Add createdByUsername field and boot-time admin seed/backfill · a1400904
    Adds AdminTransaction.createdByUsername (default null) so future
    permission-scoped views can attribute data to a user, plus a new
    app/libs/adminBootstrap.js that seeds the first admin account from
    ADMIN_USER/ADMIN_PASSWORD on boot and backfills any pre-existing
    transaction lacking createdByUsername to that admin. Wired into
    server.js's mongoose 'open' handler. Idempotent across repeated boots.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    tdgiang authored Aug 29, 2026
    a1400904
server.js 1.47 KB
EditWeb IDE
×

Replace server.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.