Skip to content

Commit

Permalink
typo in OldPosts that broke them
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 6, 2018
1 parent ba6357d commit df09e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/OldPosts.moon
Expand Up @@ -12,9 +12,9 @@ class OldPosts extends Model
title: (value) =>
if not value or value\len! < 1
return "Must have a title."
if Posts\find title: value
if OldPosts\find title: value
return "A post with that title has already been created."
slug: (value) =>
if Posts\find slug: value
if OldPosts\find slug: value
return "A post with too similar a title has already been created."
}

0 comments on commit df09e23

Please sign in to comment.