1
0
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:
OpSimple 2018-06-01 23:47:27 +05:30 committed by GitHub
parent a9b020fa02
commit 1d283f5030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}