Skip to content

Commit 14aeb83

Browse files
author
Sylvestre
authored
fix no fields case (#73)
1 parent 007ba5e commit 14aeb83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default (url) => async (req, res) => {
170170
throw notFound();
171171
};
172172

173-
function schema(fields) {
173+
function schema(fields = []) {
174174
return {
175175
type: "array",
176176
items: {

0 commit comments

Comments
 (0)