Skip to content

Commit f927cb5

Browse files
committed
Some responses from deps aren't numeric
* Convert to storing a String instead Post OpenUserJS#1730
1 parent 99bb8f1 commit f927cb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ var syncSchema = new Schema({
1616
strat: String, // Currently github (lowercase always)
1717
id: String, // Some unique identifier from source
1818
target: String, // Fully Qualified URL target (should be encodeURIComponent already)
19-
response: Number, // HTTP Status Code
19+
response: String, // HTTP Status Code usually and sometimes text response,
20+
// i.e. ENOTFOUND, with no associated numeric code. Usually from dep
2021
message: String, // Any message crafted or static
2122
created: { type: Date, expires: 60 * 60 * 24 * 30 },
2223
updated: Date,

0 commit comments

Comments
 (0)