fix: openapi test specs

This commit is contained in:
gasoved
2021-02-03 12:34:13 +03:00
committed by Julian Lam
parent 7c9674de6c
commit cabec378f4
4 changed files with 29 additions and 17 deletions

View File

@@ -266,7 +266,8 @@ postsAPI.getDiffs = async (caller, data) => {
privileges.users.isModerator(caller.uid, cid),
]);
timestamps.push(post.timestamp);
// timestamps returned by posts.diffs.list are strings
timestamps.push(String(post.timestamp));
return {
timestamps: timestamps,