mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fixed filename extension check
This commit is contained in:
parent
630e895f6c
commit
4c758a9083
@ -12,7 +12,7 @@ const findGqlFiles = dir => {
|
||||
// Recurse into a subdirectory
|
||||
results = results.concat(findGqlFiles(file))
|
||||
} else {
|
||||
if (file.split('.').pop() === 'gql') {
|
||||
if (path.extname(file) === '.gql') {
|
||||
// Is a gql file
|
||||
results.push(file)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user