Skip to content

Commit df378c4

Browse files
committed
fix: return a version number.
1 parent c68a28b commit df378c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/database/foxx/api/schema_router.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function parseSchemaId(schId) {
5858
}
5959

6060
if (colonCount === 0) {
61-
return { id: schId, ver: null };
61+
return { id: schId, ver: 0 };
6262
}
6363

6464
const idx = schId.indexOf(":");
@@ -203,6 +203,7 @@ router
203203
delete sch._key;
204204
delete sch._rev;
205205

206+
sch.id = parsed.id + ":" + parsed.ver;
206207
res.send([sch]);
207208
},
208209
});

0 commit comments

Comments
 (0)