mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Array checking made constructor safe
This commit is contained in:
parent
a9b020fa02
commit
1d283f5030
@ -43,7 +43,7 @@ exports.run = async (core, server, socket, data) => {
|
||||
dumb:true
|
||||
}
|
||||
|
||||
if(data.allies && data.allies.constructor === Array){
|
||||
if(data.allies && Array.isArray(data.allies)){
|
||||
record.allies = data.allies;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user