add admin user ID to seed config and update notification relations
```
This commit is contained in:
louiscklaw
2025-05-11 17:29:19 +08:00
parent a4cdb4b1cc
commit 99ee2f9fc3
4 changed files with 53 additions and 18 deletions

View File

@@ -2,9 +2,9 @@ const config = require("/pb_hooks/seed/config.js");
const utils = require("/pb_hooks/seed/utils.js");
module.exports = ($app) => {
const { CR_cat_id_news, CR_cat_id_technology } = config;
const { CR_cat_id_news, CR_cat_id_technology, user_id_admin } = config;
const { getId, getAsset } = utils;
const ADMIN_USER_ID = getId("999");
const ADMIN_USER_ID = user_id_admin;
let row_array = [[ADMIN_USER_ID, "admin@123.com", "admin@123.com", "admin@123.com", true, true, "test_admin_1"]];