mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
admin post fix
This commit is contained in:
parent
8ad91239de
commit
5d1ff649ce
1 changed files with 1 additions and 1 deletions
|
@ -734,7 +734,7 @@ function GetApp(): ModuleType {
|
|||
content: content,
|
||||
date: new Date().toLocaleString(),
|
||||
user: user.id,
|
||||
admin: admins.includes(user),
|
||||
admin: admins.includes(user.id),
|
||||
}
|
||||
|
||||
utils.WriteFile(JSON.stringify(news, null, 2), newsFile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue