Fix srv binaries
This commit is contained in:
parent
01424c7dab
commit
bdd1f01605
@ -37,7 +37,7 @@
|
|||||||
pname = "mediocre-blog-srv";
|
pname = "mediocre-blog-srv";
|
||||||
version = "dev";
|
version = "dev";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
vendorSha256 = "1s5jhis1a2y7m50k29ap7kd0h4bgc3dzy1f9dqf5jrz8n27f3i87";
|
vendorSha256 = "sha256-C3hyPDO+6oTUeoGP/ZzBn5Y4V/q1jI12BwkR9NADHn0=";
|
||||||
|
|
||||||
# disable tests
|
# disable tests
|
||||||
checkPhase = '''';
|
checkPhase = '''';
|
||||||
|
@ -76,7 +76,7 @@ func importPost(postStore post.Store, path string) (post.StoredPost, error) {
|
|||||||
Body: string(body),
|
Body: string(body),
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := postStore.Set(p, publishedAt); err != nil {
|
if _, err := postStore.Set(p, publishedAt); err != nil {
|
||||||
return post.StoredPost{}, fmt.Errorf("storing post id %q: %w", p.ID, err)
|
return post.StoredPost{}, fmt.Errorf("storing post id %q: %w", p.ID, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ func importPost(postStore post.Store, path string) (post.StoredPost, error) {
|
|||||||
|
|
||||||
// as a hack, we store the post again with the updated date as now. This
|
// as a hack, we store the post again with the updated date as now. This
|
||||||
// will update the LastUpdatedAt field in the Store.
|
// will update the LastUpdatedAt field in the Store.
|
||||||
if err := postStore.Set(p, lastUpdatedAt); err != nil {
|
if _, err := postStore.Set(p, lastUpdatedAt); err != nil {
|
||||||
return post.StoredPost{}, fmt.Errorf("updating post id %q: %w", p.ID, err)
|
return post.StoredPost{}, fmt.Errorf("updating post id %q: %w", p.ID, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user